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

Side by Side Diff: third_party/WebKit/Source/core/dom/ScriptRunnerTest.cpp

Issue 2843503002: scheduler: Move WebFrameScheduler and WebScheduler into Blink (Closed)
Patch Set: Build fix Created 3 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/ScriptRunner.h" 5 #include "core/dom/ScriptRunner.h"
6 6
7 #include "core/dom/MockScriptElementBase.h" 7 #include "core/dom/MockScriptElementBase.h"
8 #include "core/dom/ScriptLoader.h" 8 #include "core/dom/ScriptLoader.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "platform/scheduler/renderer/web_view_scheduler.h"
10 #include "platform/testing/TestingPlatformSupport.h" 11 #include "platform/testing/TestingPlatformSupport.h"
11 #include "public/platform/Platform.h" 12 #include "public/platform/Platform.h"
12 #include "public/platform/WebViewScheduler.h"
13 #include "testing/gmock/include/gmock/gmock.h" 13 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 using ::testing::Invoke; 16 using ::testing::Invoke;
17 using ::testing::ElementsAre; 17 using ::testing::ElementsAre;
18 using ::testing::Return; 18 using ::testing::Return;
19 using ::testing::WhenSorted; 19 using ::testing::WhenSorted;
20 using ::testing::ElementsAreArray; 20 using ::testing::ElementsAreArray;
21 21
22 namespace blink { 22 namespace blink {
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 422
423 // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do not 423 // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do not
424 // access dead object. 424 // access dead object.
425 EXPECT_CALL(*script_loader1, Execute()).Times(0); 425 EXPECT_CALL(*script_loader1, Execute()).Times(0);
426 EXPECT_CALL(*script_loader2, Execute()).Times(0); 426 EXPECT_CALL(*script_loader2, Execute()).Times(0);
427 427
428 platform_->RunUntilIdle(); 428 platform_->RunUntilIdle();
429 } 429 }
430 430
431 } // namespace blink 431 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptRunner.cpp ('k') | third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698