Searched refs:mock (Results 1 – 7 of 7) sorted by relevance
/art/libnativeloader/ |
D | native_loader_test.h | 136 static std::unique_ptr<MockPlatform> mock; variable 145 return mock->mock_init_anonymous_namespace(false, sonames, search_path); in android_init_anonymous_namespace() 154 mock->mock_create_namespace(false, name, ld_library_path, default_library_path, type, in android_create_namespace() 160 return mock->mock_link_namespaces(false, TO_MOCK_NAMESPACE(from), TO_MOCK_NAMESPACE(to), sonames); in android_link_namespaces() 164 return TO_ANDROID_NAMESPACE(mock->mock_get_exported_namespace(false, name)); in android_get_exported_namespace() 168 return mock->mock_dlopen_ext(false, filename, flags, TO_MOCK_NAMESPACE(info->library_namespace)); in android_dlopen_ext() 174 return mock->NativeBridgeIsSupported(libpath); in NativeBridgeIsSupported() 178 return TO_BRIDGED_NAMESPACE(mock->mock_get_exported_namespace(true, name)); in NativeBridgeGetExportedNamespace() 185 mock->mock_create_namespace(true, name, ld_library_path, default_library_path, type, in NativeBridgeCreateNamespace() 191 return mock->mock_link_namespaces(true, TO_MOCK_NAMESPACE(from), TO_MOCK_NAMESPACE(to), sonames); in NativeBridgeLinkNamespaces() [all …]
|
D | native_loader_test.cpp | 62 mock = std::make_unique<testing::NiceMock<MockPlatform>>(IsBridged()); in SetUp() 72 EXPECT_CALL(*mock, in SetExpectations() 83 mock.reset(); in TearDown() 99 EXPECT_CALL(*mock, in TEST_P() 123 EXPECT_CALL(*mock, mock_dlopen_ext(false, StrEq(test_lib_path), RTLD_NOW, NsEq("system"))) in TEST_P() 146 EXPECT_CALL(*mock, mock_dlopen_ext(false, StrEq(test_lib_path), RTLD_NOW, NsEq("system"))) in TEST_P() 210 ON_CALL(*mock, JniObject_getParent(StrEq(class_loader))).WillByDefault(Return(nullptr)); in SetExpectations() 212 EXPECT_CALL(*mock, NativeBridgeIsPathSupported(_)).Times(testing::AnyNumber()); in SetExpectations() 213 EXPECT_CALL(*mock, NativeBridgeInitialized()).Times(testing::AnyNumber()); in SetExpectations() 215 EXPECT_CALL(*mock, mock_create_namespace( in SetExpectations() [all …]
|
D | native_loader_lazy_test.cpp | 37 mock = std::make_unique<testing::NiceMock<MockPlatform>>(false); in SetUp() 47 mock.reset(); in TearDown() 51 ON_CALL(*mock, JniObject_getParent(StrEq(class_loader))).WillByDefault(Return(nullptr)); in CallCreateClassLoaderNamespace() 52 EXPECT_CALL(*mock, mock_create_namespace) in CallCreateClassLoaderNamespace() 54 ON_CALL(*mock, mock_link_namespaces).WillByDefault(Return(true)); in CallCreateClassLoaderNamespace()
|
D | Android.bp | 129 // The tests mock libdl_android and libnativebridge symbols, so export them
|
/art/dex2oat/linker/ |
D | multi_oat_relative_patcher_test.cc | 132 std::unique_ptr<MockPatcher> mock(new MockPatcher()); in MultiOatRelativePatcherTest() local 133 mock_ = mock.get(); in MultiOatRelativePatcherTest() 134 patcher_.relative_patcher_ = std::move(mock); in MultiOatRelativePatcherTest()
|
/art/tools/bisection_search/ |
D | bisection_test.py | 21 from unittest.mock import Mock
|
/art/runtime/ |
D | subtype_check_test.cc | 221 MockSubtypeCheck mock; in Lookup() local 222 mock.klass_ = klass; in Lookup() 223 return mock; in Lookup()
|