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

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 time mock with function-specific mock method 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..3e388d12ea7fd2729351ce9f7bd82e08c67845ff 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
@@ -55,3 +56,7 @@ class SystemHost(object):
def exit(self, returncode):
sys.exit(returncode)
+
+ @staticmethod
+ def unixtime():
Dirk Pranke 2016/10/28 14:37:22 Don't use a @staticmethod, it doesn't really buy y
+ return time.time()

Powered by Google App Engine
This is Rietveld 408576698