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

Unified Diff: third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp

Issue 2646933002: Move PerformanceBase to TaskRunnerTimer. (Closed)
Patch Set: Created 3 years, 11 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/core/timing/PerformanceObserverTest.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp b/third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp
index 8d6a66d70205cb3abec62444bf7362df419d30e0..b679a18f4524c4e83830f4dc8d36eb7f74ec27a9 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceObserverTest.cpp
@@ -10,13 +10,18 @@
#include "core/timing/PerformanceBase.h"
#include "core/timing/PerformanceMark.h"
#include "core/timing/PerformanceObserverInit.h"
+#include "public/platform/Platform.h"
+#include "public/platform/WebThread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
class MockPerformanceBase : public PerformanceBase {
public:
- MockPerformanceBase() : PerformanceBase(0) {}
+ MockPerformanceBase()
+ : PerformanceBase(
+ 0,
+ Platform::current()->currentThread()->getWebTaskRunner()) {}
haraken 2017/01/20 02:30:25 Ditto.
~MockPerformanceBase() {}
ExecutionContext* getExecutionContext() const override { return nullptr; }

Powered by Google App Engine
This is Rietveld 408576698