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

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

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 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 <memory>
7 #include "bindings/core/v8/ScriptSourceCode.h" 8 #include "bindings/core/v8/ScriptSourceCode.h"
8 #include "bindings/core/v8/SourceLocation.h" 9 #include "bindings/core/v8/SourceLocation.h"
9 #include "bindings/core/v8/V8GCController.h" 10 #include "bindings/core/v8/V8GCController.h"
10 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" 11 #include "bindings/core/v8/WorkerOrWorkletScriptController.h"
11 #include "core/dom/CompositorWorkerProxyClient.h" 12 #include "core/dom/CompositorWorkerProxyClient.h"
12 #include "core/inspector/ConsoleMessage.h" 13 #include "core/inspector/ConsoleMessage.h"
13 #include "core/workers/InProcessWorkerObjectProxy.h" 14 #include "core/workers/InProcessWorkerObjectProxy.h"
14 #include "core/workers/ParentFrameTaskRunners.h" 15 #include "core/workers/ParentFrameTaskRunners.h"
15 #include "core/workers/WorkerBackingThread.h" 16 #include "core/workers/WorkerBackingThread.h"
16 #include "core/workers/WorkerLoaderProxy.h" 17 #include "core/workers/WorkerLoaderProxy.h"
17 #include "core/workers/WorkerOrWorkletGlobalScope.h" 18 #include "core/workers/WorkerOrWorkletGlobalScope.h"
18 #include "core/workers/WorkerThreadStartupData.h" 19 #include "core/workers/WorkerThreadStartupData.h"
19 #include "platform/CrossThreadFunctional.h" 20 #include "platform/CrossThreadFunctional.h"
20 #include "platform/WaitableEvent.h" 21 #include "platform/WaitableEvent.h"
21 #include "platform/WebThreadSupportingGC.h" 22 #include "platform/WebThreadSupportingGC.h"
22 #include "platform/heap/Handle.h" 23 #include "platform/heap/Handle.h"
23 #include "platform/testing/TestingPlatformSupport.h" 24 #include "platform/testing/TestingPlatformSupport.h"
24 #include "platform/testing/UnitTestHelpers.h" 25 #include "platform/testing/UnitTestHelpers.h"
26 #include "platform/wtf/PtrUtil.h"
25 #include "public/platform/Platform.h" 27 #include "public/platform/Platform.h"
26 #include "public/platform/WebAddressSpace.h" 28 #include "public/platform/WebAddressSpace.h"
27 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
28 #include "wtf/PtrUtil.h"
29 #include <memory>
30 30
31 namespace blink { 31 namespace blink {
32 namespace { 32 namespace {
33 33
34 // A null InProcessWorkerObjectProxy, supplied when creating 34 // A null InProcessWorkerObjectProxy, supplied when creating
35 // CompositorWorkerThreads. 35 // CompositorWorkerThreads.
36 class TestCompositorWorkerObjectProxy : public InProcessWorkerObjectProxy { 36 class TestCompositorWorkerObjectProxy : public InProcessWorkerObjectProxy {
37 public: 37 public:
38 static std::unique_ptr<TestCompositorWorkerObjectProxy> Create( 38 static std::unique_ptr<TestCompositorWorkerObjectProxy> Create(
39 ParentFrameTaskRunners* parent_frame_task_runners) { 39 ParentFrameTaskRunners* parent_frame_task_runners) {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 ASSERT_TRUE(second_isolate); 245 ASSERT_TRUE(second_isolate);
246 EXPECT_EQ(first_isolate, second_isolate); 246 EXPECT_EQ(first_isolate, second_isolate);
247 247
248 // Verify that the isolate can run some scripts correctly in the second 248 // Verify that the isolate can run some scripts correctly in the second
249 // worker. 249 // worker.
250 CheckWorkerCanExecuteScript(second_worker.get()); 250 CheckWorkerCanExecuteScript(second_worker.get());
251 second_worker->TerminateAndWait(); 251 second_worker->TerminateAndWait();
252 } 252 }
253 253
254 } // namespace blink 254 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698