| 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 "modules/compositorworker/CompositorWorkerThread.h" | 5 #include "modules/compositorworker/CompositorWorkerThread.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/ScriptSourceCode.h" | 7 #include "bindings/core/v8/ScriptSourceCode.h" |
| 8 #include "bindings/core/v8/V8GCController.h" | 8 #include "bindings/core/v8/V8GCController.h" |
| 9 #include "core/inspector/ConsoleMessage.h" | 9 #include "core/inspector/ConsoleMessage.h" |
| 10 #include "core/testing/DummyPageHolder.h" | 10 #include "core/testing/DummyPageHolder.h" |
| 11 #include "core/workers/InProcessWorkerObjectProxy.h" | 11 #include "core/workers/InProcessWorkerObjectProxy.h" |
| 12 #include "core/workers/WorkerBackingThread.h" | 12 #include "core/workers/WorkerBackingThread.h" |
| 13 #include "core/workers/WorkerLoaderProxy.h" | 13 #include "core/workers/WorkerLoaderProxy.h" |
| 14 #include "core/workers/WorkerThreadStartupData.h" | 14 #include "core/workers/WorkerThreadStartupData.h" |
| 15 #include "platform/ThreadSafeFunctional.h" | 15 #include "platform/ThreadSafeFunctional.h" |
| 16 #include "platform/WaitableEvent.h" | 16 #include "platform/WaitableEvent.h" |
| 17 #include "platform/WebThreadSupportingGC.h" |
| 17 #include "platform/heap/Handle.h" | 18 #include "platform/heap/Handle.h" |
| 18 #include "platform/testing/TestingPlatformSupport.h" | 19 #include "platform/testing/TestingPlatformSupport.h" |
| 19 #include "platform/testing/UnitTestHelpers.h" | 20 #include "platform/testing/UnitTestHelpers.h" |
| 20 #include "public/platform/Platform.h" | 21 #include "public/platform/Platform.h" |
| 21 #include "public/platform/WebAddressSpace.h" | 22 #include "public/platform/WebAddressSpace.h" |
| 22 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 23 | 24 |
| 24 namespace blink { | 25 namespace blink { |
| 25 namespace { | 26 namespace { |
| 26 | 27 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 v8::Isolate* secondIsolate = secondWorker->isolate(); | 218 v8::Isolate* secondIsolate = secondWorker->isolate(); |
| 218 ASSERT_TRUE(secondIsolate); | 219 ASSERT_TRUE(secondIsolate); |
| 219 EXPECT_EQ(firstIsolate, secondIsolate); | 220 EXPECT_EQ(firstIsolate, secondIsolate); |
| 220 | 221 |
| 221 // Verify that the isolate can run some scripts correctly in the second work
er. | 222 // Verify that the isolate can run some scripts correctly in the second work
er. |
| 222 checkWorkerCanExecuteScript(secondWorker.get()); | 223 checkWorkerCanExecuteScript(secondWorker.get()); |
| 223 secondWorker->terminateAndWait(); | 224 secondWorker->terminateAndWait(); |
| 224 } | 225 } |
| 225 | 226 |
| 226 } // namespace blink | 227 } // namespace blink |
| OLD | NEW |