diff options
| author | Andreas Gampe <agampe@google.com> | 2014-09-02 21:17:03 -0700 |
|---|---|---|
| committer | Andreas Gampe <agampe@google.com> | 2014-09-08 11:12:13 -0700 |
| commit | 41df668c7be461f461b3d70951dee7634ded868f (patch) | |
| tree | 18f63fba57fc7311a19f30027d2ea0063400d110 /libnativebridge/tests/UnavailableNativeBridge_test.cpp | |
| parent | 97b536f1fbfd1fa711833b7dc92aed902dea4bdf (diff) | |
| download | system_core-41df668c7be461f461b3d70951dee7634ded868f.zip system_core-41df668c7be461f461b3d70951dee7634ded868f.tar.gz system_core-41df668c7be461f461b3d70951dee7634ded868f.tar.bz2 | |
NativeBridge: Refactor for new initialization flow
Setup becomes Load, have explicit Initialize and Unload.
(cherry picked from commit 035bd7541ed909344348b6a4e17a7ef01a434653)
Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
Diffstat (limited to 'libnativebridge/tests/UnavailableNativeBridge_test.cpp')
| -rw-r--r-- | libnativebridge/tests/UnavailableNativeBridge_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libnativebridge/tests/UnavailableNativeBridge_test.cpp b/libnativebridge/tests/UnavailableNativeBridge_test.cpp index 27d1233..ec96c32 100644 --- a/libnativebridge/tests/UnavailableNativeBridge_test.cpp +++ b/libnativebridge/tests/UnavailableNativeBridge_test.cpp @@ -20,9 +20,10 @@ namespace android { TEST_F(NativeBridgeTest, NoNativeBridge) { EXPECT_EQ(false, NativeBridgeAvailable()); - // This should lead to an error for trying to initialize a not-setup - // native bridge. + // Try to initialize. This should fail as we are not set up. + EXPECT_EQ(false, InitializeNativeBridge()); EXPECT_EQ(true, NativeBridgeError()); + EXPECT_EQ(false, NativeBridgeAvailable()); } } // namespace android |
