/external/mockito/src/org/mockito/internal/configuration/ |
MockitoAnnotationsMockAnnotationProcessor.java | 8 import org.mockito.MockitoAnnotations.Mock; 13 * Instantiates a mock on a field annotated by {@link Mock} 16 public class MockitoAnnotationsMockAnnotationProcessor implements FieldAnnotationProcessor<Mock> { 18 public Object process(Mock annotation, Field field) { 19 return Mockito.mock(field.getType(), field.getName());
|
MockAnnotationProcessor.java | 7 import org.mockito.Mock; 14 * Instantiates a mock on a field annotated by {@link Mock} 16 public class MockAnnotationProcessor implements FieldAnnotationProcessor<Mock> { 17 public Object process(Mock annotation, Field field) { 31 // see @Mock answer default value 33 return Mockito.mock(field.getType(), mockSettings);
|
/external/webkit/Source/WebKit/chromium/tests/ |
CCThreadTaskTest.cpp | 37 class Mock { 48 Mock mock; local 49 EXPECT_CALL(mock, method0()).Times(1); 50 EXPECT_CALL(mock, method1(9)).Times(1); 51 EXPECT_CALL(mock, method2(9, 8)).Times(1); 52 EXPECT_CALL(mock, method3(9, 8, 7)).Times(1); 53 EXPECT_CALL(mock, method4(9, 8, 7, 6)).Times(1); 55 createCCThreadTask(&mock, &Mock::method0)->performTask() [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/net/irc/ |
ircproxy_unittest.py | 33 from webkitpy.thirdparty.mock import Mock 38 proxy = IRCProxy(Mock(), Mock())
|
/external/webkit/Tools/Scripts/webkitpy/layout_tests/layout_package/ |
test_runner_unittest.py | 36 from webkitpy.thirdparty.mock import Mock 50 port = Mock() 52 runner = TestRunnerWrapper(port=port, options=Mock(), 53 printer=Mock())
|
/external/chromium/chrome/browser/chromeos/login/ |
enterprise_enrollment_screen_browsertest.cc | 14 using testing::Mock; 40 Mock::VerifyAndClearExpectations(&mock_screen_observer);
|
/external/chromium/chrome/browser/prefs/ |
scoped_user_pref_update_unittest.cc | 13 using testing::Mock; 53 Mock::VerifyAndClearExpectations(&observer_); 63 Mock::VerifyAndClearExpectations(&observer_); 78 Mock::VerifyAndClearExpectations(&observer_);
|
pref_change_registrar_unittest.cc | 14 using testing::Mock; 19 // A mock provider that allows us to capture pref observer changes. 66 Mock::VerifyAndClearExpectations(service()); 77 Mock::VerifyAndClearExpectations(service()); 88 Mock::VerifyAndClearExpectations(service()); 106 Mock::VerifyAndClearExpectations(service()); 117 Mock::VerifyAndClearExpectations(service());
|
pref_set_observer_unittest.cc | 64 using testing::Mock; 75 Mock::VerifyAndClearExpectations(&observer); 83 Mock::VerifyAndClearExpectations(&observer); 88 Mock::VerifyAndClearExpectations(&observer);
|
overlay_persistent_pref_store_unittest.cc | 12 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);
|
pref_notifier_impl_unittest.cc | 19 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_);
|
pref_service_unittest.cc | 29 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::VerifyAndClearExpectations(&obs2) [all...] |
/external/littlemock/src/com/google/testing/littlemock/ |
Mock.java | 25 * Use this to inject a mock into your test class. 29 * @Mock private MyInterface mMockMyInterface; 40 public @interface Mock {
|
/external/mockito/src/org/mockito/runners/ |
MockitoJUnit44Runner.java | 8 import org.mockito.Mock; 20 * Initializes mocks annotated with {@link Mock}, 27 * Runner is completely optional - there are other ways you can get @Mock working, for example by writing a base class. 31 * Read more about @Mock annotation in javadoc for {@link MockitoAnnotations} 38 * @Mock
|
/external/chromium/testing/gmock/test/ |
gmock_link_test.h | 32 // Google Mock - a framework for writing C++ mock classes. 35 // a. A header file defining a mock class can be included in multiple 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 { 207 Mock() {} 220 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock); 243 Mock mock; local 251 Mock mock; local 260 Mock mock; local 268 Mock mock; local 277 Mock mock; local 286 Mock mock; local 295 Mock mock; local 308 Mock mock; local 320 Mock mock; local 332 Mock mock; local 345 Mock mock; local 354 Mock mock; local 363 Mock mock; local 372 Mock mock; local 380 Mock mock; local 390 Mock mock; local 400 Mock mock; local 409 Mock mock; local 432 Mock mock; local 444 Mock mock; local 462 Mock mock; local 472 Mock mock; local 479 Mock mock; local 486 Mock mock; local 496 Mock mock; local 507 Mock mock; local 514 Mock mock; local 521 Mock mock; local 529 Mock mock; local 538 Mock mock; local 550 Mock mock; local 557 Mock mock; local 564 Mock mock; local 573 Mock mock; local 582 Mock mock; local 589 Mock mock; local 597 Mock mock; local [all...] |
/external/chromium/testing/gmock/include/gmock/ |
gmock-generated-nice-strict.h | 36 // Given a mock class MockFoo that is created using Google Mock, 38 // uninteresting calls (i.e. calls to mock methods that have no 44 // write NiceMock<MockFoo>(5, "a") to construct a nice mock where 49 // StrictMock<MockFoo> only works for mock methods defined using the 51 // mock method is defined in a base class of MockFoo, the "nice" or 55 // Another known limitation is that the constructors of the base mock 73 ::testing::Mock::AllowUninterestingCalls( 81 ::testing::Mock::AllowUninterestingCalls( 86 ::testing::Mock::AllowUninterestingCalls [all...] |
/external/webkit/Tools/Scripts/webkitpy/tool/commands/ |
rebaseline_unittest.py | 32 from webkitpy.thirdparty.mock import Mock 42 build = Mock()
|
roll_unittest.py | 29 from webkitpy.thirdparty.mock import Mock 38 MOCK: MockDEPS.write_variable(chromium_rev, 6764) 39 MOCK: user.open_url: file://...
|
/external/mockito/src/org/mockito/ |
Mock.java | 15 * Mark a field as a mock.
18 * <li>Allows shorthand mock creation.</li>
19 * <li>Minimizes repetitive mock creation code.</li>
21 * <li>Makes the verification error easier to read because the <b>field name</b> is used to identify the mock.</li>
27 * @Mock private ArticleCalculator calculator;
28 * @Mock(name = "database") private ArticleDatabase dbMock;
29 * @Mock(answer = RETURNS_MOCKS) private UserProvider userProvider;
30 * @Mock(extraInterfaces = {Queue.class, Observer.class}) private articleMonitor;
55 * @see Mockito#mock(Class)
64 public @interface Mock {
[all...] |
/external/mockito/src/org/mockito/internal/configuration/injection/scanner/ |
InjectMocksScanner.java | 9 import org.mockito.Mock; 46 * @return Fields that depends on Mock 53 assertNoAnnotations(field, Mock.class, MockitoAnnotations.Mock.class, Captor.class);
|
MockScanner.java | 7 import org.mockito.Mock; 38 * Add the scanned and prepared mock instance to the given collection. 53 * @return A prepared set of mock 58 // mock or spies only 81 || null != field.getAnnotation(Mock.class) 82 || null != field.getAnnotation(MockitoAnnotations.Mock.class);
|
/frameworks/testing/androidtestlib/tests/src/com/android/test/runner/ |
AndroidJUnitRunnerTest.java | 23 import org.mockito.Mock; 38 @Mock 40 @Mock
|
/external/chromium/testing/gmock/src/ |
gmock-spec-builders.cc | 32 // Google Mock - a framework for writing C++ mock classes. 54 // Protects the mock object registry (in class Mock), all function 265 // Sets the mock object this mock method belongs to, and registers 266 // this information in the global mock registry. Will be called 267 // whenever an EXPECT_CALL() or ON_CALL() is executed on this mock 275 Mock::Register(mock_obj, this); 278 // Sets the mock object this mock method belongs to, and sets the nam [all...] |
/external/webkit/Tools/Scripts/webkitpy/common/checkout/ |
api_unittest.py | 42 from webkitpy.thirdparty.mock import Mock 115 # ChangeLog is difficult to mock at current. 128 scm = Mock() 147 scm = Mock() 164 scm = Mock() 181 scm = Mock() 188 scm = Mock() 194 scm = Mock() 212 scm = Mock() [all...] |
/external/webkit/Tools/Scripts/webkitpy/tool/bot/ |
sheriff_unittest.py | 34 from webkitpy.thirdparty.mock import Mock 40 name = "mock-sheriff-bot" 57 commit_info = Mock() 62 sheriff.post_blame_comment_on_bug(commit_info, builders, ["mock-test-1", "mock-test-2"]) 66 sheriff.post_blame_comment_on_bug(commit_info, builders, ["mock-test-1"]) 67 sheriff.post_blame_comment_on_bug(commit_info, builders, ["mock-test-1", "mock-test-2"]) 69 expected_stderr = u"""MOCK bug comment: bug_id=1234, cc=['watcher@example.com' [all...] |