Searched defs:MockObject (Results 1 - 4 of 4) sorted by relevance

/external/chromium_org/chrome/browser/android/thumbnail/
H A Dscoped_ptr_expiring_cache_unittest.cc21 class MockObject { class in namespace:__anon2877
23 static scoped_ptr<MockObject> Create(unsigned int key) {
24 return make_scoped_ptr(new MockObject(key));
30 explicit MockObject(unsigned int key) : value_(GenerateValue(key)) {} function in class:__anon2877::MockObject
33 DISALLOW_COPY_AND_ASSIGN(MockObject);
39 typedef ScopedPtrExpiringCache<unsigned int, MockObject>
48 cache.Put(i, MockObject::Create(i).Pass());
56 cache.Put(next_key, MockObject::Create(next_key).Pass());
91 cache.Put(i, MockObject::Create(i).Pass());
95 cache.Put(next_key, MockObject
[all...]
/external/chromium_org/tools/telemetry/telemetry/unittest/
H A Dsimple_mock.py55 class MockObject(object): class in inherits:object
67 assert isinstance(value, MockObject)
/external/chromium_org/third_party/protobuf/python/
H A Dmox.py172 MockObject that can be used as the class_to_mock would be.
175 new_mock = MockObject(class_to_mock)
211 This will replace a class or module with a MockObject, and everything else
359 class MockObject(MockAnything, object): class in inherits:MockAnything, object
395 MockObject's state (record or replay). The call will be recorded
407 UnknownMethodCallError if the MockObject does not mock the requested
422 return (isinstance(rhs, MockObject) and
/external/protobuf/python/
H A Dmox.py172 MockObject that can be used as the class_to_mock would be.
175 new_mock = MockObject(class_to_mock)
211 This will replace a class or module with a MockObject, and everything else
359 class MockObject(MockAnything, object): class in inherits:MockAnything, object
395 MockObject's state (record or replay). The call will be recorded
407 UnknownMethodCallError if the MockObject does not mock the requested
422 return (isinstance(rhs, MockObject) and

Completed in 187 milliseconds