HomeSort by relevance Sort by last modified time
    Searched defs:Mock (Results 1 - 25 of 26) sorted by null

1 2

  /external/chromium_org/third_party/WebKit/Tools/GardeningServer/scripts/
controllers_unittests.js 29 "Mock Builder": unittest.kExampleResultsJSON,
66 "Mock Builder": {
  /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/
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 * &#064;Mock private ArticleCalculator calculator;
28 * &#064;Mock(name = "database") private ArticleDatabase dbMock;
29 * &#064;Mock(answer = RETURNS_MOCKS) private UserProvider userProvider;
30 * &#064;Mock(extraInterfaces = {Queue.class, Observer.class}) private articleMonitor;
55 * @see Mockito#mock(Class)
64 public @interface Mock {
    [all...]
MockitoAnnotations.java 29 * <li>Minimizes repetitive mock creation code.</li>
31 * <li>Makes the verification error easier to read because <b>field name</b> is used to identify the mock.</li>
37 * &#064;Mock private ArticleCalculator calculator;
38 * &#064;Mock private ArticleDatabase database;
39 * &#064;Mock private UserProvider userProvider;
67 * Use top-level {@link org.mockito.Mock} annotation instead
69 * When &#064;Mock annotation was implemented as an inner class then users experienced problems with autocomplete features in IDEs.
70 * Hence &#064;Mock was made a top-level class.
73 * Typically, you can just <b>search:</b> import org.mockito.MockitoAnnotations.Mock; <b>and replace with:</b> import org.mockito.Mock;
123 Object mock = annotationEngine.createMockFor(annotation, field); local
    [all...]
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/
crashlogs_unittest.py 30 from webkitpy.thirdparty.mock import Mock
82 files['/Users/mock/Library/Logs/DiagnosticReports/DumpRenderTree_2011-06-13-150718_quadzen.crash'] = older_mock_crash_report
83 files['/Users/mock/Library/Logs/DiagnosticReports/DumpRenderTree_2011-06-13-150719_quadzen.crash'] = mock_crash_report
84 files['/Users/mock/Library/Logs/DiagnosticReports/DumpRenderTree_2011-06-13-150720_quadzen.crash'] = newer_mock_crash_report
85 files['/Users/mock/Library/Logs/DiagnosticReports/DumpRenderTree_2011-06-13-150721_quadzen.crash'] = None
86 files['/Users/mock/Library/Logs/DiagnosticReports/DumpRenderTree_2011-06-13-150722_quadzen.crash'] = other_process_mock_crash_report
87 files['/Users/mock/Library/Logs/DiagnosticReports/DumpRenderTree_2011-06-13-150723_quadzen.crash'] = misformatted_mock_crash_report
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/
chromium_unittest.py 35 from webkitpy.thirdparty.mock import Mock
base_unittest.py 40 from webkitpy.thirdparty.mock import Mock
217 port.expectations_files = lambda: ['/mock-checkout/LayoutTests/platform/exists/TestExpectations', '/mock-checkout/LayoutTests/platform/nonexistant/TestExpectations']
218 port._filesystem.write_text_file('/mock-checkout/LayoutTests/platform/exists/TestExpectations', '')
219 self.assertEqual('\n'.join(port.expectations_dict().keys()), '/mock-checkout/LayoutTests/platform/exists/TestExpectations')
224 port._filesystem.write_text_file('/mock-checkout/LayoutTests/platform/foo/TestExpectations', '')
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/
download_unittest.py 32 from webkitpy.thirdparty.mock import Mock
52 options.parent_command = 'MOCK parent command'
queuestest.py 34 from webkitpy.thirdparty.mock import Mock
70 return "MOCK: update_status: %(name)s Starting Queue\n" % string_replacements
73 checkout_dir = '/mock-checkout'
82 tool.filesystem.write_text_file('/mock-results/full_results.json', "")
90 options = Mock()
104 self.assert_outputs(queue.handle_unexpected_error, "handle_unexpected_error", [work_item, "Mock error message"], expected_stdout, expected_stderr, expected_exceptions, expected_logs)
107 self.assert_outputs(queue.handle_script_error, "handle_script_error", [tool, {"patch": self.mock_work_item}, ScriptError(message="ScriptError error message", script_args="MockErrorCommand", output="MOCK output")], expected_stdout, expected_stderr, expected_exceptions, expected_logs)
queries_unittest.py 34 from webkitpy.thirdparty.mock import Mock
rebaseline_unittest.py 36 from webkitpy.thirdparty.mock import Mock
42 MOCK_WEB_RESULT = 'MOCK Web result, convert 404 to None=True'
91 for builder in ['MOCK builder', 'MOCK builder (Debug)', 'WebKit Mac10.7']:
112 "MOCK Leopard": {"port_name": "test-mac-leopard", "specifiers": set(["mock-specifier"])},
113 "MOCK SnowLeopard": {"port_name": "test-mac-snowleopard", "specifiers": set(["mock-specifier"])},
116 options = MockOptions(builder="MOCK SnowLeopard", suffixes="txt", verbose=True, test="failures/expected/image.html", results_directory (…)
    [all...]
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/steps/
cleanworkingdirectory_unittest.py 31 from webkitpy.thirdparty.mock import Mock
40 tool._scm = Mock()
48 tool._scm = Mock()
56 tool._scm = Mock()
65 tool._scm = Mock()
discardlocalchanges_unittest.py 31 from webkitpy.thirdparty.mock import Mock
40 tool._scm = Mock()
47 tool._scm = Mock()
56 tool._scm = Mock()
65 tool._scm = Mock()
74 tool._scm = Mock()
83 tool._scm = Mock()
92 tool._scm = Mock()
  /external/chromium/testing/gmock/test/
gmock-nice-strict_test.cc 40 // clash with ::testing::Mock.
41 class Mock {
43 Mock() {}
48 GTEST_DISALLOW_COPY_AND_ASSIGN_(Mock);
65 // Defines some mock classes needed by the tests.
112 // Tests that a nice mock generates no warning for uninteresting calls.
122 // Tests that a nice mock generates no warning for uninteresting calls
123 // that delete the mock object.
135 // Tests that a nice mock generates informational logs for
145 HasSubstr("Uninteresting mock function call"))
    [all...]
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_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/controllers/
manager_unittest.py 40 from webkitpy.thirdparty.mock import Mock
47 port = Mock() # FIXME: Use a tighter mock.
49 manager = Manager(port, options=MockOptions(http=True, max_locked_shards=1), printer=Mock())
60 manager = Manager(port, options=MockOptions(http=True, max_locked_shards=1), printer=Mock())
112 manager = Manager(port, options=MockOptions(test_list=None, http=True, max_locked_shards=1), printer=Mock())
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/
json_results_generator_unittest.py 38 from webkitpy.thirdparty.mock import Mock
92 port = Mock()
  /external/chromium_org/third_party/yasm/source/patched-yasm/tools/python-yasm/tests/
__init__.py 8 class Mock(object):
  /external/chromium_org/chrome/third_party/mock4js/
mock4js.js 16 // mock creation
17 object.mock = function(mockedType) {
19 throw new Mock4JSException("Cannot create mock: type to mock cannot be found or is null");
21 var newMock = new Mock(mockedType);
497 * Mock
499 function Mock(mockedType) {
501 throw new Mock4JSException("Unable to create Mock: must create Mock using a class not prototype, eg. 'new Mock(TypeToMock)' or using the convenience method 'mock(TypeToMock)'");
14 }, function
    [all...]
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/checkout/
checkout_unittest.py 44 from webkitpy.thirdparty.mock import Mock
55 mock_patch = Mock()
58 expected_logs = "MOCK run_command: ['svn-apply', '--force'], cwd=/mock-checkout, input=foo\n"
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/net/
credentials_unittest.py 36 from webkitpy.thirdparty.mock import Mock
116 executive_mock = Mock()
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/thirdparty/
mock.py 0 # mock.py
6 # mock 0.6.0
7 # http://www.voidspace.org.uk/python/mock/
55 'Mock',
97 class Mock(object):
123 if isinstance(self._return_value, Mock):
129 self._return_value = Mock()
174 raise AttributeError("Mock object has no attribute '%s'" % name)
182 self._children[name] = Mock(parent=self, name=name, wraps=wraps)
274 new = Mock(spec=spec
    [all...]
  /external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/
gardeningserver_unittest.py 36 from webkitpy.thirdparty.mock import Mock
103 expected_stderr = 'MOCK run_command: [\'svn\', \'cat\', \'http://src.chromium.org/chrome/trunk/src/DEPS\'], cwd=None, input=None\n'
110 print >> sys.stderr, "MOCK run_command: %s, cwd=%s, input=%s" % (args, cwd, input)
118 expected_stderr = "MOCK run_command: ['echo', 'rollout', '--force-clean', '--non-interactive', '2314', 'MOCK rollout reason'], cwd=/mock-checkout\n"
120 self._post_to_path("/rollout?revision=2314&reason=MOCK+rollout+reason", expected_stderr=expected_stderr, expected_stdout=expected_stdout)
123 expected_stderr = "MOCK run_command: ['echo', 'rebaseline-json'], cwd=/mock-checkout, input={\"user-scripts/another-test.html\":{\"%s\": [%s]}}\n
    [all...]
  /external/chromium_org/third_party/pymock/
mock.py 0 # mock.py
3 # Copyright (C) 2007-2012 Michael Foord & the mock team
6 # mock 1.0
7 # http://www.voidspace.org.uk/python/mock/
17 'Mock',
129 # can't use isinstance on Mock objects because they override __class__
200 def _check_signature(func, mock, skipfirst, instance=False):
214 type(mock)._mock_check_sig = checksig
261 def _set_signature(mock, original, instance=False):
263 # mock. It still does signature checking by calling a lambda with the sam
    [all...]
  /external/dexmaker/lib/
mockito-core-1.9.1-SNAPSHOT.jar 

Completed in 382 milliseconds

1 2