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

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

Issue 2507673002: Scheduler: Deprecate CancellableTaskFactory in favor of WebTaskRunner::postCancellableTask (2) (Closed)
Patch Set: address review comments Created 4 years, 1 month 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/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/dom/Element.h" 8 #include "core/dom/Element.h"
9 #include "core/dom/ScriptLoader.h" 9 #include "core/dom/ScriptLoader.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "platform/scheduler/CancellableTaskFactory.h"
12 #include "platform/testing/TestingPlatformSupport.h" 11 #include "platform/testing/TestingPlatformSupport.h"
13 #include "public/platform/Platform.h" 12 #include "public/platform/Platform.h"
14 #include "public/platform/WebViewScheduler.h" 13 #include "public/platform/WebViewScheduler.h"
15 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
17 16
18 using ::testing::Invoke; 17 using ::testing::Invoke;
19 using ::testing::ElementsAre; 18 using ::testing::ElementsAre;
20 using ::testing::Return; 19 using ::testing::Return;
21 using ::testing::WhenSorted; 20 using ::testing::WhenSorted;
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 414
416 // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do not 415 // m_scriptRunner is gone. We need to make sure that ScriptRunner::Task do not
417 // access dead object. 416 // access dead object.
418 EXPECT_CALL(*scriptLoader1, execute()).Times(0); 417 EXPECT_CALL(*scriptLoader1, execute()).Times(0);
419 EXPECT_CALL(*scriptLoader2, execute()).Times(0); 418 EXPECT_CALL(*scriptLoader2, execute()).Times(0);
420 419
421 m_platform.runUntilIdle(); 420 m_platform.runUntilIdle();
422 } 421 }
423 422
424 } // namespace blink 423 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptRunner.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698