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