Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py

Issue 2588863002: Make MockExecutive behave more like MockExecutive2. (Closed)
Patch Set: Reformat args lists for MockHost, MockSystemHost. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/system/executive_mock.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py
index 238fff70b15780ed236f36a2eb2e7d5dfdc5f022..9a62e2a619d28751d0a538fba35e53f53686629c 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/host_mock.py
@@ -40,12 +40,19 @@ from webkitpy.layout_tests.port.test import add_unit_tests_to_mock_filesystem
class MockHost(MockSystemHost):
- def __init__(self, log_executive=False, executive_throws_when_run=None,
- initialize_scm_by_default=True, web=None, scm=None, os_name=None, os_version=None,
+ def __init__(self,
+ log_executive=False,
+ initialize_scm_by_default=True,
+ web=None,
+ scm=None,
+ os_name=None,
+ os_version=None,
time_return_val=123):
-
- MockSystemHost.__init__(self, log_executive, executive_throws_when_run, os_name=os_name,
- os_version=os_version, time_return_val=time_return_val)
+ super(MockHost, self).__init__(
+ log_executive=log_executive,
+ os_name=os_name,
+ os_version=os_version,
+ time_return_val=time_return_val)
add_unit_tests_to_mock_filesystem(self.filesystem)
self.web = web or MockWeb()
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/webkitpy/common/system/executive_mock.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698