Searched refs:mock_foo (Results 1 – 12 of 12) sorted by relevance
/external/googletest/googlemock/test/ |
D | gmock_stress_test.cc | 95 MockFoo* mock_foo; member 101 const char ch = param.mock_foo->Baz("a", "b"); in Helper1() 111 EXPECT_EQ('\0', param.mock_foo->Baz("x", "y")) << "Expected failure."; in Helper1() 114 EXPECT_EQ(1, param.mock_foo->Bar(5)); in Helper1()
|
/external/google-breakpad/src/testing/test/ |
D | gmock_stress_test.cc | 175 MockFoo* mock_foo; member 181 const char ch = param.mock_foo->Baz("a", "b"); in Helper1() 191 EXPECT_EQ('\0', param.mock_foo->Baz("x", "y")) << "Expected failure."; in Helper1() 194 EXPECT_EQ(1, param.mock_foo->Bar(5)); in Helper1()
|
/external/python/cpython3/Doc/library/ |
D | unittest.mock-examples.rst | 592 >>> mock_foo = MagicMock() 593 >>> mock_foo.iter.return_value = iter([1, 2, 3]) 594 >>> list(mock_foo.iter()) 637 ... self.mock_foo = self.patcher.start() 640 ... self.assertIs(mymodule.foo, self.mock_foo) 656 ... self.mock_foo = patcher.start() 659 ... self.assertIs(mymodule.foo, self.mock_foo) 691 >>> with patch.object(Foo, 'foo', autospec=True) as mock_foo: 692 ... mock_foo.return_value = 'foo' 697 >>> mock_foo.assert_called_once_with(foo) [all …]
|
D | unittest.mock.rst | 800 >>> with patch('__main__.Foo.foo', new_callable=PropertyMock) as mock_foo: 801 ... mock_foo.return_value = 'mockity-mock' 807 >>> mock_foo.mock_calls
|
/external/python/mock/mock/tests/ |
D | testpatch.py | 1196 def _test(self, mock_foo): argument 1198 test.assertIs(Foo, mock_foo) 1201 def test_two(self, mock_foo): argument 1202 self._test(mock_foo) 1203 def test_one(self, mock_foo): argument 1204 self._test(mock_foo)
|
D | testhelpers.py | 377 mock_foo = p.start() 380 mock_foo.assert_called_with(1)
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testpatch.py | 1215 def _test(self, mock_foo): argument 1217 test.assertIs(Foo, mock_foo) 1220 def test_two(self, mock_foo): argument 1221 self._test(mock_foo) 1222 def test_one(self, mock_foo): argument 1223 self._test(mock_foo)
|
D | testhelpers.py | 396 mock_foo = p.start() 399 mock_foo.assert_called_with(1)
|
/external/googletest/googlemock/include/gmock/ |
D | gmock-generated-matchers.h.pump | 81 // // Expects mock_foo.Bar(n) to be called where n is even. 82 // EXPECT_CALL(mock_foo, Bar(IsEven()));
|
/external/googletest/googlemock/docs/ |
D | CookBook.md | 241 MockFoo mock_foo; 242 EXPECT_CALL(mock_foo, DoThis()); 243 ... code that uses mock_foo ... 247 If a method of `mock_foo` other than `DoThis()` is called, it will be 256 NiceMock<MockFoo> mock_foo; 257 EXPECT_CALL(mock_foo, DoThis()); 258 ... code that uses mock_foo ... 272 NiceMock<MockFoo> mock_foo(5, "hi"); // Calls MockFoo(5, "hi"). 273 EXPECT_CALL(mock_foo, DoThis()); 274 ... code that uses mock_foo ... [all …]
|
D | ForDummies.md | 113 …tion code and testing utilities), and put it in a `mock_foo.h`. Then everyone can reference `mock_…
|
/external/google-breakpad/src/testing/include/gmock/ |
D | gmock-generated-matchers.h.pump | 439 // // Expects mock_foo.Bar(n) to be called where n is even. 440 // EXPECT_CALL(mock_foo, Bar(IsEven()));
|