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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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"
25 #include "public/platform/Platform.h" 26 #include "public/platform/Platform.h"
26 #include "public/platform/WebAddressSpace.h" 27 #include "public/platform/WebAddressSpace.h"
27 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
28 #include "wtf/PtrUtil.h" 29 #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* parentFrameTaskRunners) { 39 ParentFrameTaskRunners* parentFrameTaskRunners) {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 ASSERT_TRUE(secondIsolate); 238 ASSERT_TRUE(secondIsolate);
239 EXPECT_EQ(firstIsolate, secondIsolate); 239 EXPECT_EQ(firstIsolate, secondIsolate);
240 240
241 // Verify that the isolate can run some scripts correctly in the second 241 // Verify that the isolate can run some scripts correctly in the second
242 // worker. 242 // worker.
243 checkWorkerCanExecuteScript(secondWorker.get()); 243 checkWorkerCanExecuteScript(secondWorker.get());
244 secondWorker->terminateAndWait(); 244 secondWorker->terminateAndWait();
245 } 245 }
246 246
247 } // namespace blink 247 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698