summaryrefslogtreecommitdiff
path: root/libnativebridge/tests/NativeBridgeTestCase6.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/NativeBridgeTestCase6.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/NativeBridgeTestCase6.cpp')
-rw-r--r--libnativebridge/tests/NativeBridgeTestCase6.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/libnativebridge/tests/NativeBridgeTestCase6.cpp b/libnativebridge/tests/NativeBridgeTestCase6.cpp
index 2b9fba51eb..351a7ea643 100644
--- a/libnativebridge/tests/NativeBridgeTestCase6.cpp
+++ b/libnativebridge/tests/NativeBridgeTestCase6.cpp
@@ -67,11 +67,6 @@ extern "C" bool native_bridge6_isPathSupported(const char* /* path */) {
return true;
}
-extern "C" bool native_bridge6_initAnonymousNamespace(const char* /* public_ns_sonames */,
- const char* /* anon_ns_library_path */) {
- return true;
-}
-
extern "C" android::native_bridge_namespace_t*
native_bridge6_createNamespace(const char* /* name */,
const char* /* ld_library_path */,
@@ -121,7 +116,7 @@ android::NativeBridgeCallbacks NativeBridgeItf{
.unloadLibrary = &native_bridge6_unloadLibrary,
.getError = &native_bridge6_getError,
.isPathSupported = &native_bridge6_isPathSupported,
- .initAnonymousNamespace = &native_bridge6_initAnonymousNamespace,
+ .unused_initAnonymousNamespace = nullptr,
.createNamespace = &native_bridge6_createNamespace,
.linkNamespaces = &native_bridge6_linkNamespaces,
.loadLibraryExt = &native_bridge6_loadLibraryExt,
@@ -130,4 +125,5 @@ android::NativeBridgeCallbacks NativeBridgeItf{
// v5
&native_bridge6_getExportedNamespace,
// v6
- &native_bridge6_preZygoteFork};
+ &native_bridge6_preZygoteFork,
+};