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

Side by Side Diff: third_party/WebKit/public/web/WebTestingSupport.h

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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/testing/RunAllTests.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 20 matching lines...) Expand all
31 #include <v8.h> 31 #include <v8.h>
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class WebTestingSupport { 35 class WebTestingSupport {
36 public: 36 public:
37 static v8::Local<v8::Value> createInternalsObject(v8::Local<v8::Context>); 37 static v8::Local<v8::Value> createInternalsObject(v8::Local<v8::Context>);
38 static void injectInternalsObject(WebLocalFrame*); 38 static void injectInternalsObject(WebLocalFrame*);
39 static void resetInternalsObject(WebLocalFrame*); 39 static void resetInternalsObject(WebLocalFrame*);
40 static void injectInternalsObject(v8::Local<v8::Context>); 40 static void injectInternalsObject(v8::Local<v8::Context>);
41
42 using TimeFunction = double (*)();
43 static void setMonotonicallyIncreasingTimeFunctionForTesting(TimeFunction);
41 }; 44 };
42 45
43 } 46 }
44 47
45 #endif 48 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/testing/RunAllTests.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698