Home
last modified time | relevance | path

Searched refs:MockObject (Results 1 – 18 of 18) sorted by relevance

/external/chromium-trace/catapult/telemetry/telemetry/testing/
Dsimple_mock_unittest.py12 mock = simple_mock.MockObject()
18 mock = simple_mock.MockObject()
25 mock = simple_mock.MockObject()
31 mock = simple_mock.MockObject()
37 mock = simple_mock.MockObject()
45 mock = simple_mock.MockObject()
51 mock = simple_mock.MockObject()
64 mock = simple_mock.MockObject()
65 mock.bar = simple_mock.MockObject(mock)
74 mock = simple_mock.MockObject()
[all …]
Dsimple_mock.py55 class MockObject(object): class
67 assert isinstance(value, MockObject)
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/
Dvtune_profiler_unittest.py30 self.PIPE = simple_mock.MockObject()
31 self.STDOUT = simple_mock.MockObject()
74 mock_subprocess = simple_mock.MockObject()
77 mock_subprocess.SetAttribute('PIPE', simple_mock.MockObject())
78 mock_subprocess.SetAttribute('STDOUT', simple_mock.MockObject())
Dperf_profiler_unittest.py26 mock_popen = simple_mock.MockObject()
29 mock_subprocess = simple_mock.MockObject()
32 mock_subprocess.SetAttribute('PIPE', simple_mock.MockObject())
Dandroid_profiling_helper_unittest.py112 mock_popen = simple_mock.MockObject()
115 mock_subprocess = simple_mock.MockObject()
118 mock_subprocess.SetAttribute('PIPE', simple_mock.MockObject())
139 mock_cursor = simple_mock.MockObject()
143 mock_conn = simple_mock.MockObject()
147 mock_sqlite3 = simple_mock.MockObject()
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/power_monitor/
Dandroid_temperature_monitor_unittest.py16 mock_device_utils = simple_mock.MockObject()
32 mock_device_utils = simple_mock.MockObject()
45 mock_device_utils = simple_mock.MockObject()
/external/chromium-trace/catapult/third_party/mox3/mox3/tests/
Dtest_mox.py938 self.mock_object = mox.MockObject(TestClass)
992 self.mock_object = mox.MockObject(ChildClass)
1013 self.assertNotEqual(self.mock_object, mox.MockObject(TestClass))
1030 dummy = mox.MockObject(TestClass)
1044 dummy = mox.MockObject(TestClass)
1055 dummy = mox.MockObject(TestClass)
1070 dummy = mox.MockObject(TestClass)
1081 dummy = mox.MockObject(TestClass)
1104 dummy = mox.MockObject(TestSubClass)
1115 dummy = mox.MockObject(TestClass)
[all …]
/external/chromium-trace/catapult/telemetry/third_party/mox3/mox3/tests/
Dtest_mox.py938 self.mock_object = mox.MockObject(TestClass)
992 self.mock_object = mox.MockObject(ChildClass)
1013 self.assertNotEqual(self.mock_object, mox.MockObject(TestClass))
1030 dummy = mox.MockObject(TestClass)
1044 dummy = mox.MockObject(TestClass)
1055 dummy = mox.MockObject(TestClass)
1070 dummy = mox.MockObject(TestClass)
1081 dummy = mox.MockObject(TestClass)
1104 dummy = mox.MockObject(TestSubClass)
1115 dummy = mox.MockObject(TestClass)
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/internal/backends/
Dform_based_credentials_backend_unittest_base.py22 tab = simple_mock.MockObject()
23 ar = simple_mock.MockObject()
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
Dmock_cloud_api.py42 class MockObject(object): class
70 return self.CreateObjectWithMetadata(MockObject(
111 new_object = MockObject(apitools_object, contents=contents)
/external/autotest/site_utils/
Dserver_manager_unittest.py52 self.DRONE_ROLE = mox.MockObject(
55 self.SCHEDULER_ROLE = mox.MockObject(
58 self.DRONE_ATTRIBUTE = mox.MockObject(
61 self.PRIMARY_DRONE = mox.MockObject(
67 self.BACKUP_DRONE = mox.MockObject(
73 self.PRIMARY_SCHEDULER = mox.MockObject(
79 self.BACKUP_SCHEDULER = mox.MockObject(
/external/chromium-trace/catapult/telemetry/third_party/mox3/mox3/
Dmox.py261 new_mock = MockObject(class_to_mock, attrs=attrs,
320 if attr_type == MockAnything or attr_type == MockObject:
378 if attr_type == MockAnything or attr_type == MockObject:
555 class MockObject(MockAnything): class
623 return super(MockObject, self)._CreateMockMethod(*args, **kwargs)
663 return (isinstance(rhs, MockObject) and
835 return super(MockObject, self).__getattribute__("_class_to_mock")
837 return super(MockObject, self).__getattribute__(name)
840 class _MockObjectFactory(MockObject):
854 MockObject.__init__(self, class_to_mock)
/external/chromium-trace/catapult/third_party/mox3/mox3/
Dmox.py261 new_mock = MockObject(class_to_mock, attrs=attrs,
320 if attr_type == MockAnything or attr_type == MockObject:
378 if attr_type == MockAnything or attr_type == MockObject:
555 class MockObject(MockAnything): class
623 return super(MockObject, self)._CreateMockMethod(*args, **kwargs)
663 return (isinstance(rhs, MockObject) and
835 return super(MockObject, self).__getattribute__("_class_to_mock")
837 return super(MockObject, self).__getattribute__(name)
840 class _MockObjectFactory(MockObject):
854 MockObject.__init__(self, class_to_mock)
/external/protobuf/python/
Dmox.py175 new_mock = MockObject(class_to_mock)
359 class MockObject(MockAnything, object): class
422 return (isinstance(rhs, MockObject) and
/external/google-breakpad/src/testing/src/
Dgmock-spec-builders.cc293 const void* UntypedFunctionMockerBase::MockObject() const in MockObject() function in testing::internal::UntypedFunctionMockerBase
340 Mock::GetReactionOnUninterestingCalls(MockObject()); in UntypedInvokeWith()
/external/gmock/src/
Dgmock-spec-builders.cc293 const void* UntypedFunctionMockerBase::MockObject() const in MockObject() function in testing::internal::UntypedFunctionMockerBase
340 Mock::GetReactionOnUninterestingCalls(MockObject()); in UntypedInvokeWith()
/external/google-breakpad/src/testing/include/gmock/
Dgmock-spec-builders.h198 const void* MockObject() const
1521 Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); in AddNewOnCallSpec()
1534 Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); in AddNewExpectation()
/external/gmock/include/gmock/
Dgmock-spec-builders.h202 const void* MockObject() const
1538 Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); in AddNewOnCallSpec()
1551 Mock::RegisterUseByOnCallOrExpectCall(MockObject(), file, line); in AddNewExpectation()