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 "config.h" | |
6 #include "core/workers/WorkerThread.h" | 5 #include "core/workers/WorkerThread.h" |
7 | 6 |
8 #include "bindings/core/v8/V8GCController.h" | 7 #include "bindings/core/v8/V8GCController.h" |
9 #include "core/inspector/ConsoleMessage.h" | 8 #include "core/inspector/ConsoleMessage.h" |
10 #include "core/workers/WorkerReportingProxy.h" | 9 #include "core/workers/WorkerReportingProxy.h" |
11 #include "core/workers/WorkerThreadStartupData.h" | 10 #include "core/workers/WorkerThreadStartupData.h" |
12 #include "platform/NotImplemented.h" | 11 #include "platform/NotImplemented.h" |
13 #include "public/platform/WebScheduler.h" | 12 #include "public/platform/WebScheduler.h" |
14 #include "public/platform/WebWaitableEvent.h" | 13 #include "public/platform/WebWaitableEvent.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 EXPECT_CALL(*m_mockWorkerReportingProxy, workerThreadTerminated()) | 281 EXPECT_CALL(*m_mockWorkerReportingProxy, workerThreadTerminated()) |
283 .Times(AtMost(1)); | 282 .Times(AtMost(1)); |
284 EXPECT_CALL(*m_mockWorkerReportingProxy, willDestroyWorkerGlobalScope()) | 283 EXPECT_CALL(*m_mockWorkerReportingProxy, willDestroyWorkerGlobalScope()) |
285 .Times(AtMost(1)); | 284 .Times(AtMost(1)); |
286 startWithSourceCode(source); | 285 startWithSourceCode(source); |
287 m_workerThread->waitUntilScriptLoaded(); | 286 m_workerThread->waitUntilScriptLoaded(); |
288 m_workerThread->terminateAndWait(); | 287 m_workerThread->terminateAndWait(); |
289 } | 288 } |
290 | 289 |
291 } // namespace blink | 290 } // namespace blink |
OLD | NEW |