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

Side by Side Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp

Issue 1898363003: Worker: Strictly check the current running thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
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 "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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerThread.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698