diff options
| author | Calin Juravle <calin@google.com> | 2014-10-17 13:45:39 +0100 | 
|---|---|---|
| committer | Calin Juravle <calin@google.com> | 2014-10-27 15:03:13 +0000 | 
| commit | f9d9e2a2d96559c3165405d572b08e260156074a (patch) | |
| tree | a6e69b8d9b230b268301f547122bab58670f5f2a /libnativebridge/tests/NativeBridgeTest.h | |
| parent | 951c48c504b28cd1646560a73d670493722f68f0 (diff) | |
| download | system_core-f9d9e2a2d96559c3165405d572b08e260156074a.zip system_core-f9d9e2a2d96559c3165405d572b08e260156074a.tar.gz system_core-f9d9e2a2d96559c3165405d572b08e260156074a.tar.bz2 | |
Handle code_cache dir creation in libnativebridge
Also:
- add kPreInitiliazed state to native bridge with check transition:
kOpened->kPreInitialized->kInitialized
- made sure we free the memory for the code_cache_path
- tidy up some error messages
- tidy up tests
- add a dummy native bridge to test with
Bug: 18027433
Bug: 18097480
Change-Id: I39f74c93580f2e224080dd3df2ffaa9cf9f8cd9c
Diffstat (limited to 'libnativebridge/tests/NativeBridgeTest.h')
| -rw-r--r-- | libnativebridge/tests/NativeBridgeTest.h | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/libnativebridge/tests/NativeBridgeTest.h b/libnativebridge/tests/NativeBridgeTest.h index 0d731cb..73c92f1 100644 --- a/libnativebridge/tests/NativeBridgeTest.h +++ b/libnativebridge/tests/NativeBridgeTest.h @@ -22,6 +22,8 @@  #include <nativebridge/native_bridge.h>  #include <gtest/gtest.h> +constexpr const char* kNativeBridgeLibrary = "libnativebridge-dummy.so"; +  namespace android {  class NativeBridgeTest : public testing::Test { | 
