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:02:38 +0000
commit59a719c466d33479265a3e9c204c8dc9a8f435f1 (patch)
tree8dfa425fdbc545b534004619222a617cadc29c5d /libnativebridge/tests/CompleteFlow_test.cpp
parentf9d9e2a2d96559c3165405d572b08e260156074a (diff)
downloadsystem_core-59a719c466d33479265a3e9c204c8dc9a8f435f1.zip
system_core-59a719c466d33479265a3e9c204c8dc9a8f435f1.tar.gz
system_core-59a719c466d33479265a3e9c204c8dc9a8f435f1.tar.bz2
Add code cache tests to libnativebridge.
Bug: 18027433 Change-Id: Ie5369c0d5bd147af412174dc0753d8a314196643
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