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

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

Issue 2951833002: [DevTools] Support multiple sessions in dedicated workers (Closed)
Patch Set: Created 3 years, 6 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 <memory>
8 #include "bindings/core/v8/ScriptSourceCode.h" 8 #include "bindings/core/v8/ScriptSourceCode.h"
9 #include "bindings/core/v8/SourceLocation.h" 9 #include "bindings/core/v8/SourceLocation.h"
10 #include "bindings/core/v8/V8GCController.h" 10 #include "bindings/core/v8/V8GCController.h"
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 // (Empty) WorkerReportingProxy implementation: 43 // (Empty) WorkerReportingProxy implementation:
44 virtual void DispatchErrorEvent(const String& error_message, 44 virtual void DispatchErrorEvent(const String& error_message,
45 std::unique_ptr<SourceLocation>, 45 std::unique_ptr<SourceLocation>,
46 int exception_id) {} 46 int exception_id) {}
47 void ReportConsoleMessage(MessageSource, 47 void ReportConsoleMessage(MessageSource,
48 MessageLevel, 48 MessageLevel,
49 const String& message, 49 const String& message,
50 SourceLocation*) override {} 50 SourceLocation*) override {}
51 void PostMessageToPageInspector(const String&) override {} 51 void PostMessageToPageInspector(int session_id, const String&) override {}
52 void DidCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override {} 52 void DidCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope*) override {}
53 void DidEvaluateWorkerScript(bool success) override {} 53 void DidEvaluateWorkerScript(bool success) override {}
54 void DidCloseWorkerGlobalScope() override {} 54 void DidCloseWorkerGlobalScope() override {}
55 void WillDestroyWorkerGlobalScope() override {} 55 void WillDestroyWorkerGlobalScope() override {}
56 void DidTerminateWorkerThread() override {} 56 void DidTerminateWorkerThread() override {}
57 57
58 private: 58 private:
59 explicit TestCompositorWorkerObjectProxy( 59 explicit TestCompositorWorkerObjectProxy(
60 ParentFrameTaskRunners* parent_frame_task_runners) 60 ParentFrameTaskRunners* parent_frame_task_runners)
61 : InProcessWorkerObjectProxy(nullptr, parent_frame_task_runners) {} 61 : InProcessWorkerObjectProxy(nullptr, parent_frame_task_runners) {}
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 ASSERT_TRUE(second_isolate); 244 ASSERT_TRUE(second_isolate);
245 EXPECT_EQ(first_isolate, second_isolate); 245 EXPECT_EQ(first_isolate, second_isolate);
246 246
247 // Verify that the isolate can run some scripts correctly in the second 247 // Verify that the isolate can run some scripts correctly in the second
248 // worker. 248 // worker.
249 CheckWorkerCanExecuteScript(second_worker.get()); 249 CheckWorkerCanExecuteScript(second_worker.get());
250 second_worker->TerminateAndWait(); 250 second_worker->TerminateAndWait();
251 } 251 }
252 252
253 } // namespace blink 253 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698