summaryrefslogtreecommitdiffstats
path: root/libnativebridge/tests/CompleteFlow_test.cpp
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2014-10-28 12:43:24 +0000
committerCalin Juravle <calin@google.com>2014-10-28 16:06:43 +0000
commit9ef4fa4c2c4f6bece351a855f53b2270f218389c (patch)
tree3a8fa97b2026a66bbf2e70b72268899378f2a6d4 /libnativebridge/tests/CompleteFlow_test.cpp
parent1402fbb13523fed9d96217e801df5678e3c01a6b (diff)
downloadsystem_core-9ef4fa4c2c4f6bece351a855f53b2270f218389c.zip
system_core-9ef4fa4c2c4f6bece351a855f53b2270f218389c.tar.gz
system_core-9ef4fa4c2c4f6bece351a855f53b2270f218389c.tar.bz2
Add code cache tests to libnativebridge.
Bug: 18027433 (cherry picked from commit 59a719c466d33479265a3e9c204c8dc9a8f435f1) Change-Id: I32bcf3ae0d4569d4d8b88168e6c36ddff70b8f7d
Diffstat (limited to 'libnativebridge/tests/CompleteFlow_test.cpp')
-rw-r--r--libnativebridge/tests/CompleteFlow_test.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libnativebridge/tests/CompleteFlow_test.cpp b/libnativebridge/tests/CompleteFlow_test.cpp
index 4f0fe8b..cf06d2c 100644
--- a/libnativebridge/tests/CompleteFlow_test.cpp
+++ b/libnativebridge/tests/CompleteFlow_test.cpp
@@ -16,6 +16,8 @@
#include "NativeBridgeTest.h"
+#include <unistd.h>
+
namespace android {
TEST_F(NativeBridgeTest, CompleteFlow) {
@@ -34,8 +36,11 @@ TEST_F(NativeBridgeTest, CompleteFlow) {
// Unload
UnloadNativeBridge();
-
+ ASSERT_FALSE(NativeBridgeAvailable());
ASSERT_FALSE(NativeBridgeError());
+
+ // Clean-up code_cache
+ ASSERT_EQ(0, rmdir(kCodeCache));
}
} // namespace android