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

Unified Diff: third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp

Issue 2588403002: TestingPlatformSupport: register Platform instance correctly (Closed)
Patch Set: review #16 and merge master 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/dom/IdleDeadlineTest.cpp
diff --git a/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp b/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp
index 068150adce9fb62298c6ff20692c58122d00558f..84004a7ec28b1a9b1670e10a027bb2d840ff799d 100644
--- a/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp
+++ b/third_party/WebKit/Source/core/dom/IdleDeadlineTest.cpp
@@ -8,6 +8,7 @@
#include "public/platform/Platform.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "wtf/CurrentTime.h"
+#include "wtf/PtrUtil.h"
namespace blink {
namespace {
@@ -75,7 +76,8 @@ TEST_F(IdleDeadlineTest, deadlineInPast) {
}
TEST_F(IdleDeadlineTest, yieldForHighPriorityWork) {
- MockPlatform platform;
+ ScopedTestingPlatformSupport<MockPlatform> platform(
+ WTF::makeUnique<MockPlatform>());
IdleDeadline* deadline =
IdleDeadline::create(1.25, IdleDeadline::CallbackType::CalledWhenIdle);

Powered by Google App Engine
This is Rietveld 408576698