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

Unified Diff: third_party/WebKit/Source/web/WebTestingSupport.cpp

Issue 1936853002: Assert event timestamp to be monotonic and not from future Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to histogram 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/Source/web/WebTestingSupport.cpp
diff --git a/third_party/WebKit/Source/web/WebTestingSupport.cpp b/third_party/WebKit/Source/web/WebTestingSupport.cpp
index ef1623b6b95377ca3525c2d4fede9cd106571bc4..ebde58be7373745c38221653c3a4f44f8c022f09 100644
--- a/third_party/WebKit/Source/web/WebTestingSupport.cpp
+++ b/third_party/WebKit/Source/web/WebTestingSupport.cpp
@@ -28,6 +28,7 @@
#include "bindings/modules/v8/V8InternalsPartial.h"
#include "core/testing/v8/WebCoreTestSupport.h"
#include "public/web/WebLocalFrame.h"
+#include "wtf/CurrentTime.h"
#include <v8/include/v8.h>
namespace blink {
@@ -58,4 +59,9 @@ void WebTestingSupport::injectInternalsObject(v8::Local<v8::Context> context)
WebCoreTestSupport::injectInternalsObject(context);
}
+void WebTestingSupport::setMonotonicallyIncreasingTimeFunctionForTesting(TimeFunction timeFunction)
+{
+ WTF::setMonotonicallyIncreasingTimeFunctionForTesting(timeFunction);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698