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

Unified Diff: third_party/WebKit/Source/wtf/CurrentTime.h

Issue 2543663002: Provide simple wrappers for base/time types in WTF (Closed)
Patch Set: Consistent mocking 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 | « third_party/WebKit/Source/wtf/BUILD.gn ('k') | third_party/WebKit/Source/wtf/CurrentTime.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/CurrentTime.h
diff --git a/third_party/WebKit/Source/wtf/CurrentTime.h b/third_party/WebKit/Source/wtf/CurrentTime.h
index 97c55191083d10f68c7f61da66f14dfe9f4c568e..b1acf736fb36ee67fb5757b6cef84cc557b9d50b 100644
--- a/third_party/WebKit/Source/wtf/CurrentTime.h
+++ b/third_party/WebKit/Source/wtf/CurrentTime.h
@@ -64,6 +64,9 @@ using TimeFunction = double (*)();
// means using the default timing function returning the actual time.
WTF_EXPORT TimeFunction setTimeFunctionsForTesting(TimeFunction);
+// Allows wtf/Time.h to use the same mock time function
+WTF_EXPORT TimeFunction getTimeFunctionForTesting();
+
} // namespace WTF
using WTF::currentTime;
« no previous file with comments | « third_party/WebKit/Source/wtf/BUILD.gn ('k') | third_party/WebKit/Source/wtf/CurrentTime.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698