Searched refs:Mock (Results 1 - 25 of 64) sorted by relevance

123

/external/webkit/Source/WebKit/chromium/tests/
H A DCCThreadTaskTest.cpp37 class Mock { class in namespace:__anon15371
48 Mock mock;
55 createCCThreadTask(&mock, &Mock::method0)->performTask();
56 createCCThreadTask(&mock, &Mock::method1, 9)->performTask();
57 createCCThreadTask(&mock, &Mock::method2, 9, 8)->performTask();
58 createCCThreadTask(&mock, &Mock::method3, 9, 8, 7)->performTask();
59 createCCThreadTask(&mock, &Mock::method4, 9, 8, 7, 6)->performTask();
/external/webkit/Tools/Scripts/webkitpy/common/net/irc/
H A Dircproxy_unittest.py33 from webkitpy.thirdparty.mock import Mock namespace
38 proxy = IRCProxy(Mock(), Mock())
/external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/
H A Dtest_runner_unittest.py36 from webkitpy.thirdparty.mock import Mock namespace
50 port = Mock()
52 runner = TestRunnerWrapper(port=port, options=Mock(),
53 printer=Mock())
/external/chromium/chrome/browser/chromeos/login/
H A Denterprise_enrollment_screen_browsertest.cc14 using testing::Mock;
40 Mock::VerifyAndClearExpectations(&mock_screen_observer);
/external/webkit/Tools/Scripts/webkitpy/tool/commands/
H A Drebaseline_unittest.py32 from webkitpy.thirdparty.mock import Mock namespace
42 build = Mock()
H A Droll_unittest.py29 from webkitpy.thirdparty.mock import Mock namespace
H A Dqueues_unittest.py38 from webkitpy.thirdparty.mock import Mock namespace
66 tool.executive = Mock()
68 queue._options = Mock()
85 queue._options = Mock()
94 queue._options = Mock()
140 "handle_unexpected_error": "Mock error message\n",
150 queue._options = Mock()
222 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '197' with comment 'Rejecting attachment 197 from commit-queue.' and additional comment 'Mock error message'\n",
239 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '197' with comment 'Rejecting attachment 197 from commit-queue.' and additional comment 'Mock error message'\n",
277 "handle_unexpected_error": "MOCK setting flag 'commit-queue' to '-' on attachment '197' with comment 'Rejecting attachment 197 from commit-queue.' and additional comment 'Mock erro
[all...]
/external/chromium/chrome/browser/prefs/
H A Dscoped_user_pref_update_unittest.cc13 using testing::Mock;
53 Mock::VerifyAndClearExpectations(&observer_);
63 Mock::VerifyAndClearExpectations(&observer_);
78 Mock::VerifyAndClearExpectations(&observer_);
H A Dpref_change_registrar_unittest.cc14 using testing::Mock;
66 Mock::VerifyAndClearExpectations(service());
77 Mock::VerifyAndClearExpectations(service());
88 Mock::VerifyAndClearExpectations(service());
106 Mock::VerifyAndClearExpectations(service());
117 Mock::VerifyAndClearExpectations(service());
H A Doverlay_persistent_pref_store_unittest.cc12 using ::testing::Mock;
35 Mock::VerifyAndClearExpectations(&obs);
40 Mock::VerifyAndClearExpectations(&obs);
45 Mock::VerifyAndClearExpectations(&obs);
50 Mock::VerifyAndClearExpectations(&obs);
55 Mock::VerifyAndClearExpectations(&obs);
60 Mock::VerifyAndClearExpectations(&obs);
65 Mock::VerifyAndClearExpectations(&obs);
73 Mock::VerifyAndClearExpectations(&obs);
H A Dpref_notifier_impl_unittest.cc19 using testing::Mock;
166 Mock::VerifyAndClearExpectations(&obs1_);
167 Mock::VerifyAndClearExpectations(&obs2_);
175 Mock::VerifyAndClearExpectations(&obs1_);
176 Mock::VerifyAndClearExpectations(&obs2_);
184 Mock::VerifyAndClearExpectations(&obs1_);
185 Mock::VerifyAndClearExpectations(&obs2_);
193 Mock::VerifyAndClearExpectations(&obs1_);
194 Mock::VerifyAndClearExpectations(&obs2_);
H A Dpref_set_observer_unittest.cc64 using testing::Mock;
75 Mock::VerifyAndClearExpectations(&observer);
83 Mock::VerifyAndClearExpectations(&observer);
88 Mock::VerifyAndClearExpectations(&observer);
H A Dpref_service_unittest.cc29 using testing::Mock;
72 Mock::VerifyAndClearExpectations(&obs);
78 Mock::VerifyAndClearExpectations(&obs);
84 Mock::VerifyAndClearExpectations(&obs);
89 Mock::VerifyAndClearExpectations(&obs);
127 Mock::VerifyAndClearExpectations(&obs);
138 Mock::VerifyAndClearExpectations(&obs);
139 Mock::VerifyAndClearExpectations(&obs2);
147 Mock::VerifyAndClearExpectations(&obs);
148 Mock
[all...]
H A Dpref_value_store_unittest.cc22 using testing::Mock;
370 Mock::VerifyAndClearExpectations(&pref_notifier_);
387 Mock::VerifyAndClearExpectations(&pref_notifier_);
392 Mock::VerifyAndClearExpectations(&pref_notifier_);
396 Mock::VerifyAndClearExpectations(&pref_notifier_);
400 Mock::VerifyAndClearExpectations(&pref_notifier_);
404 Mock::VerifyAndClearExpectations(&pref_notifier_);
408 Mock::VerifyAndClearExpectations(&pref_notifier_);
417 Mock::VerifyAndClearExpectations(&pref_notifier_);
422 Mock
[all...]
/external/littlemock/src/com/google/testing/littlemock/
H A DMock.java29 * @Mock private MyInterface mMockMyInterface;
40 public @interface Mock { interface
/external/chromium/testing/gmock/test/
H A Dgmock_link_test.h32 // Google Mock - a framework for writing C++ mock classes.
104 // This test requires identical definitions of Interface and Mock to be
109 // definitions of Interface and Mock tests MUST be kept in the SAME
205 class Mock: public Interface { class in inherits:Interface
207 Mock() {} function in class:Mock
220 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
243 Mock mock;
251 Mock mock;
260 Mock mock;
268 Mock moc
[all...]
H A Dgmock-nice-strict_test.cc40 // clash with ::testing::Mock.
41 class Mock { class
43 Mock() {} function in class:Mock
48 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
194 // Tests that NiceMock<Mock> compiles where Mock is a user-defined
195 // class (as opposed to ::testing::Mock). We had to workaround an
196 // MSVC 8.0 bug that caused the symbol Mock used in the definition of
203 NiceMock< ::Mock> nice;
268 // Tests that StrictMock<Mock> compile
[all...]
/external/chromium/testing/gmock/include/gmock/
H A Dgmock-generated-nice-strict.h36 // Given a mock class MockFoo that is created using Google Mock,
73 ::testing::Mock::AllowUninterestingCalls(
81 ::testing::Mock::AllowUninterestingCalls(
86 ::testing::Mock::AllowUninterestingCalls(
92 ::testing::Mock::AllowUninterestingCalls(
99 ::testing::Mock::AllowUninterestingCalls(
106 ::testing::Mock::AllowUninterestingCalls(
114 ::testing::Mock::AllowUninterestingCalls(
123 ::testing::Mock::AllowUninterestingCalls(
132 ::testing::Mock
[all...]
/external/webkit/Tools/Scripts/webkitpy/tool/bot/
H A Dsheriff_unittest.py34 from webkitpy.thirdparty.mock import Mock namespace
57 commit_info = Mock()
/external/chromium/testing/gmock/src/
H A Dgmock-spec-builders.cc32 // Google Mock - a framework for writing C++ mock classes.
54 // Protects the mock object registry (in class Mock), all function
275 Mock::Register(mock_obj, this);
335 // We must get Google Mock's reaction on uninteresting calls
340 Mock::GetReactionOnUninterestingCalls(MockObject());
489 // Class Mock.
514 // Mock::AllowLeak(), ON_CALL(), or EXPECT_CALL() is called on it. It
575 // Maps a mock object to the reaction Google Mock should have when an
579 // Sets the reaction Google Mock should have when an uninteresting
590 // Tells Google Mock t
[all...]
/external/webkit/Tools/Scripts/webkitpy/common/checkout/
H A Dapi_unittest.py42 from webkitpy.thirdparty.mock import Mock namespace
128 scm = Mock()
147 scm = Mock()
164 scm = Mock()
181 scm = Mock()
188 scm = Mock()
194 scm = Mock()
212 scm = Mock()
/external/webkit/Tools/Scripts/webkitpy/tool/steps/
H A Dvalidatechangelogs_unittest.py32 from webkitpy.thirdparty.mock import Mock namespace
43 diff_file = Mock()
/external/chromium/chrome/browser/policy/
H A Ddevice_token_fetcher_unittest.cc28 using testing::Mock;
84 Mock::VerifyAndClearExpectations(&observer);
96 Mock::VerifyAndClearExpectations(&observer);
117 Mock::VerifyAndClearExpectations(&observer);
135 Mock::VerifyAndClearExpectations(&observer);
/external/webkit/Tools/Scripts/webkitpy/common/net/
H A Dcredentials_unittest.py37 from webkitpy.thirdparty.mock import Mock namespace
106 executive_mock = Mock()
122 executive_mock = Mock()
/external/chromium/chrome/browser/safe_browsing/
H A Dclient_side_detection_host_unittest.cc31 using ::testing::Mock;
202 EXPECT_TRUE(Mock::VerifyAndClear(csd_service_.get()));
203 EXPECT_TRUE(Mock::VerifyAndClear(sb_service_.get()));
204 EXPECT_TRUE(Mock::VerifyAndClear(mock_profile_));
224 EXPECT_TRUE(Mock::VerifyAndClear(csd_service_.get()));
240 EXPECT_TRUE(Mock::VerifyAndClear(csd_service_.get()));
255 EXPECT_TRUE(Mock::VerifyAndClear(sb_service_.get()));
271 EXPECT_TRUE(Mock::VerifyAndClear(csd_service_.get()));
281 EXPECT_TRUE(Mock::VerifyAndClear(sb_service_.get()));
301 EXPECT_TRUE(Mock
[all...]

Completed in 455 milliseconds

123