Home
last modified time | relevance | path

Searched refs:mock (Results 1 – 5 of 5) sorted by relevance

/art/libnativeloader/
Dnative_loader_test.cpp151 static std::unique_ptr<MockPlatform> mock; variable
156 return mock->dlopen(file, flag); in dlopen()
160 return mock->dlclose(handle); in dlclose()
164 return mock->dlerror(); in dlerror()
168 return mock->mock_init_anonymous_namespace(false, sonames, search_path); in android_init_anonymous_namespace()
177 mock->mock_create_namespace(false, name, ld_library_path, default_library_path, type, in android_create_namespace()
183 return mock->mock_link_namespaces(false, TO_MOCK_NAMESPACE(from), TO_MOCK_NAMESPACE(to), sonames); in android_link_namespaces()
187 return TO_ANDROID_NAMESPACE(mock->mock_get_exported_namespace(false, name)); in android_get_exported_namespace()
191 return mock->mock_dlopen_ext(false, filename, flags, TO_MOCK_NAMESPACE(info->library_namespace)); in android_dlopen_ext()
196 return mock->NativeBridgeIsSupported(libpath); in NativeBridgeIsSupported()
[all …]
/art/tools/class2greylist/test/src/com/android/class2greylist/
DAnnotationHandlerTestBase.java20 import static org.mockito.Mockito.mock;
46 mConsumer = mock(AnnotationConsumer.class); in baseSetup()
47 mStatus = mock(Status.class, withSettings().verboseLogging()); in baseSetup()
/art/dex2oat/linker/
Dmulti_oat_relative_patcher_test.cc132 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/
Dbisection_test.py21 from unittest.mock import Mock
/art/runtime/
Dsubtype_check_test.cc221 MockSubtypeCheck mock; in Lookup() local
222 mock.klass_ = klass; in Lookup()
223 return mock; in Lookup()