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

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

Issue 2453513002: Change default behavior of --seed to be unix timestamp (Closed)
Patch Set: Replace custom MockTime with host.time Created 4 years, 2 months 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
Index: third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py
index 01f986278676bec7385065fc31a453fd3acee160..ead1070ae56fde28f7470022f84467691f0c7cdf 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/common/system/systemhost.py
@@ -29,6 +29,7 @@
import os
import platform
import sys
+import time
from webkitpy.common.system import executive, filesystem, platforminfo, user, workspace
@@ -46,6 +47,7 @@ class SystemHost(object):
self.stdout = sys.stdout
self.stderr = sys.stderr
self.environ = os.environ
+ self.time = time
Dirk Pranke 2016/10/26 17:24:51 I'd provide a wrapper method for time.time() inste
jeffcarp 2016/10/26 18:40:44 Great, updated.
def print_(self, *args, **kwargs):
sep = kwargs.get('sep', ' ')

Powered by Google App Engine
This is Rietveld 408576698