Lines Matching refs:mock_namespace_handle
68 using mock_namespace_handle = char*; typedef in android::nativeloader::Platform
72 virtual mock_namespace_handle mock_create_namespace(bool bridged,
78 mock_namespace_handle parent) = 0;
80 mock_namespace_handle from,
81 mock_namespace_handle to,
83 virtual mock_namespace_handle mock_get_exported_namespace(bool bridged, const char* name) = 0;
87 mock_namespace_handle ns) = 0;
104 #define TO_MOCK_NAMESPACE(ns) reinterpret_cast<Platform::mock_namespace_handle>(ns)
107 static std::unordered_map<std::string, Platform::mock_namespace_handle> namespaces = {
134 .WillByDefault(testing::Invoke([](bool, const char* name) -> mock_namespace_handle { in MockPlatform()
147 mock_namespace_handle(bool,
153 mock_namespace_handle));
155 bool(bool, mock_namespace_handle, mock_namespace_handle, const char*));
156 MOCK_METHOD2(mock_get_exported_namespace, mock_namespace_handle(bool, const char*));
157 MOCK_METHOD4(mock_dlopen_ext, void*(bool, const char*, int, mock_namespace_handle));