| Index: third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost_mock.py
|
| diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost_mock.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost_mock.py
|
| index 6457872977577ddc32e51d801af641d0dc7ba2df..e744eddfea052312b691f779bb9e5001b5e88b51 100644
|
| --- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost_mock.py
|
| +++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost_mock.py
|
| @@ -37,8 +37,8 @@ from webkitpy.common.system.workspace_mock import MockWorkspace
|
|
|
| class MockSystemHost(object):
|
|
|
| - def __init__(self, log_executive=False, executive_throws_when_run=None,
|
| - os_name=None, os_version=None, executive=None, filesystem=None):
|
| + def __init__(self, log_executive=False, executive_throws_when_run=None, os_name=None,
|
| + os_version=None, executive=None, filesystem=None, time_return_val=123):
|
| self.executable = 'python'
|
| self.executive = executive or MockExecutive(should_log=log_executive, should_throw_when_run=executive_throws_when_run)
|
| self.filesystem = filesystem or MockFileSystem()
|
| @@ -59,6 +59,10 @@ class MockSystemHost(object):
|
| 'MOCK_ENVIRON_COPY': '1',
|
| 'PATH': '/bin:/mock/bin'
|
| }
|
| + self.time_return_val = time_return_val
|
| +
|
| + def time(self):
|
| + return self.time_return_val
|
|
|
| def print_(self, *args, **kwargs):
|
| sep = kwargs.get('sep', ' ')
|
|
|