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

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

Issue 1312843009: Improve CancellableTaskFactory handling and Oilpan usage. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add unwrap() clarification Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ScriptRunner.cpp ('k') | Source/core/html/parser/HTMLParserScheduler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "config.h" 5 #include "config.h"
6 #include "core/dom/ScriptRunner.h" 6 #include "core/dom/ScriptRunner.h"
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/Element.h" 9 #include "core/dom/Element.h"
10 #include "core/dom/ScriptLoader.h" 10 #include "core/dom/ScriptLoader.h"
11 #include "platform/scheduler/CancellableTaskFactory.h"
11 #include "public/platform/Platform.h" 12 #include "public/platform/Platform.h"
12 #include <gmock/gmock.h> 13 #include <gmock/gmock.h>
13 #include <gtest/gtest.h> 14 #include <gtest/gtest.h>
14 15
15 using ::testing::Invoke; 16 using ::testing::Invoke;
16 using ::testing::ElementsAre; 17 using ::testing::ElementsAre;
17 using ::testing::Return; 18 using ::testing::Return;
18 19
19 namespace blink { 20 namespace blink {
20 21
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 testing::Mock::VerifyAndClear(scriptLoader2.get()); 572 testing::Mock::VerifyAndClear(scriptLoader2.get());
572 testing::Mock::VerifyAndClear(scriptLoader3.get()); 573 testing::Mock::VerifyAndClear(scriptLoader3.get());
573 EXPECT_CALL(*scriptLoader2, execute()).Times(1); 574 EXPECT_CALL(*scriptLoader2, execute()).Times(1);
574 EXPECT_CALL(*scriptLoader3, execute()).Times(1); 575 EXPECT_CALL(*scriptLoader3, execute()).Times(1);
575 EXPECT_CALL(*scriptLoader2, isReady()).WillRepeatedly(Return(true)); 576 EXPECT_CALL(*scriptLoader2, isReady()).WillRepeatedly(Return(true));
576 EXPECT_CALL(*scriptLoader3, isReady()).WillRepeatedly(Return(true)); 577 EXPECT_CALL(*scriptLoader3, isReady()).WillRepeatedly(Return(true));
577 m_platform.runAllTasks(); 578 m_platform.runAllTasks();
578 } 579 }
579 580
580 } // namespace blink 581 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptRunner.cpp ('k') | Source/core/html/parser/HTMLParserScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698