Lines Matching refs:mock_namespace_handle
64 typedef char* mock_namespace_handle; typedef in android::nativeloader::Platform
67 virtual mock_namespace_handle mock_create_namespace(
69 uint64_t type, const char* permitted_when_isolated_path, mock_namespace_handle parent) = 0;
70 virtual bool mock_link_namespaces(bool bridged, mock_namespace_handle from,
71 mock_namespace_handle to, const char* sonames) = 0;
72 virtual mock_namespace_handle mock_get_exported_namespace(bool bridged, const char* name) = 0;
74 mock_namespace_handle ns) = 0;
94 #define TO_MOCK_NAMESPACE(ns) reinterpret_cast<Platform::mock_namespace_handle>(ns)
97 static std::unordered_map<std::string, Platform::mock_namespace_handle> namespaces = {
115 .WillByDefault(testing::Invoke([](bool, const char* name) -> mock_namespace_handle { in MockPlatform()
131 mock_namespace_handle(bool, const char*, const char*, const char*, uint64_t,
132 const char*, mock_namespace_handle));
134 bool(bool, mock_namespace_handle, mock_namespace_handle, const char*));
135 MOCK_METHOD2(mock_get_exported_namespace, mock_namespace_handle(bool, const char*));
136 MOCK_METHOD4(mock_dlopen_ext, void*(bool, const char*, int, mock_namespace_handle));