Searched defs:MockObject (Results 1 - 4 of 4) sorted by relevance
/external/chromium_org/chrome/browser/android/thumbnail/ |
H A D | scoped_ptr_expiring_cache_unittest.cc | 21 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 D | simple_mock.py | 55 class MockObject(object): class in inherits:object 67 assert isinstance(value, MockObject)
|
/external/chromium_org/third_party/protobuf/python/ |
H A D | mox.py | 172 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 D | mox.py | 172 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