OLD | NEW |
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 Loading... |
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 |
OLD | NEW |