summaryrefslogtreecommitdiff
path: root/libnativebridge/tests/NativeBridgeTestCase7.cpp
diff options
context:
space:
mode:
author Martin Stjernholm <mast@google.com> 2021-04-17 17:28:08 +0100
committer Martin Stjernholm <mast@google.com> 2024-09-11 15:11:37 +0000
commitda53336c50994a20c292dd5fde0591ca53efea2a (patch)
tree2b34664bf8476138b698e9dd0d7f1f10ff16089c /libnativebridge/tests/NativeBridgeTestCase7.cpp
parent25d8fb090c068ac67da26a25fee68c82f2a059ee (diff)
Remove remnants of init_anonymous_namespace in libnativebridge and
in tests. It ceased to be used in https://r.android.com/1070435. #codehealth Test: atest CtsJniTestCases Test: atest art/libnativeloader Test: atest art/libnativebridge/tests Bug: 130388701 Bug: 122710865 Change-Id: Ie8fcde3b86b4913566ebb5ea3f1a4bc9b9f96316
Diffstat (limited to 'libnativebridge/tests/NativeBridgeTestCase7.cpp')
-rw-r--r--libnativebridge/tests/NativeBridgeTestCase7.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/libnativebridge/tests/NativeBridgeTestCase7.cpp b/libnativebridge/tests/NativeBridgeTestCase7.cpp
index f84930c71b..6f4c5e4f8b 100644
--- a/libnativebridge/tests/NativeBridgeTestCase7.cpp
+++ b/libnativebridge/tests/NativeBridgeTestCase7.cpp
@@ -79,11 +79,6 @@ extern "C" const char* native_bridge7_getError() { return nullptr; }
extern "C" bool native_bridge7_isPathSupported(const char* /* path */) { return true; }
-extern "C" bool native_bridge7_initAnonymousNamespace(const char* /* public_ns_sonames */,
- const char* /* anon_ns_library_path */) {
- return true;
-}
-
extern "C" android::native_bridge_namespace_t* native_bridge7_createNamespace(
const char* /* name */,
const char* /* ld_library_path */,
@@ -132,7 +127,7 @@ android::NativeBridgeCallbacks NativeBridgeItf{
.unloadLibrary = &native_bridge7_unloadLibrary,
.getError = &native_bridge7_getError,
.isPathSupported = &native_bridge7_isPathSupported,
- .initAnonymousNamespace = &native_bridge7_initAnonymousNamespace,
+ .unused_initAnonymousNamespace = nullptr,
.createNamespace = &native_bridge7_createNamespace,
.linkNamespaces = &native_bridge7_linkNamespaces,
.loadLibraryExt = &native_bridge7_loadLibraryExt,
@@ -144,4 +139,5 @@ android::NativeBridgeCallbacks NativeBridgeItf{
&native_bridge7_preZygoteFork,
// v7
&native_bridge7_getTrampoline2,
- &native_bridge7_getTrampolineForFunctionPointer};
+ &native_bridge7_getTrampolineForFunctionPointer,
+};