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

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

Issue 2141673002: [DevTools] Always send a copy of worker message through the page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 5 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/SourceLocation.h" 8 #include "bindings/core/v8/SourceLocation.h"
9 #include "bindings/core/v8/V8GCController.h" 9 #include "bindings/core/v8/V8GCController.h"
10 #include "core/dom/CompositorProxyClient.h" 10 #include "core/dom/CompositorProxyClient.h"
(...skipping 23 matching lines...) Expand all
34 public: 34 public:
35 static std::unique_ptr<TestCompositorWorkerObjectProxy> create(ExecutionCont ext* context) 35 static std::unique_ptr<TestCompositorWorkerObjectProxy> create(ExecutionCont ext* context)
36 { 36 {
37 return wrapUnique(new TestCompositorWorkerObjectProxy(context)); 37 return wrapUnique(new TestCompositorWorkerObjectProxy(context));
38 } 38 }
39 39
40 // (Empty) WorkerReportingProxy implementation: 40 // (Empty) WorkerReportingProxy implementation:
41 virtual void reportException(const String& errorMessage, std::unique_ptr<Sou rceLocation>) {} 41 virtual void reportException(const String& errorMessage, std::unique_ptr<Sou rceLocation>) {}
42 void reportConsoleMessage(ConsoleMessage*) override {} 42 void reportConsoleMessage(ConsoleMessage*) override {}
43 void postMessageToPageInspector(const String&) override {} 43 void postMessageToPageInspector(const String&) override {}
44 void postWorkerConsoleAgentEnabled() override {}
45 44
46 void didEvaluateWorkerScript(bool success) override {} 45 void didEvaluateWorkerScript(bool success) override {}
47 void workerGlobalScopeStarted(WorkerGlobalScope*) override {} 46 void workerGlobalScopeStarted(WorkerGlobalScope*) override {}
48 void workerGlobalScopeClosed() override {} 47 void workerGlobalScopeClosed() override {}
49 void workerThreadTerminated() override {} 48 void workerThreadTerminated() override {}
50 void willDestroyWorkerGlobalScope() override {} 49 void willDestroyWorkerGlobalScope() override {}
51 50
52 ExecutionContext* getExecutionContext() override { return m_executionContext .get(); } 51 ExecutionContext* getExecutionContext() override { return m_executionContext .get(); }
53 52
54 private: 53 private:
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 v8::Isolate* secondIsolate = secondWorker->isolate(); 234 v8::Isolate* secondIsolate = secondWorker->isolate();
236 ASSERT_TRUE(secondIsolate); 235 ASSERT_TRUE(secondIsolate);
237 EXPECT_EQ(firstIsolate, secondIsolate); 236 EXPECT_EQ(firstIsolate, secondIsolate);
238 237
239 // Verify that the isolate can run some scripts correctly in the second work er. 238 // Verify that the isolate can run some scripts correctly in the second work er.
240 checkWorkerCanExecuteScript(secondWorker.get()); 239 checkWorkerCanExecuteScript(secondWorker.get());
241 secondWorker->terminateAndWait(); 240 secondWorker->terminateAndWait();
242 } 241 }
243 242
244 } // namespace blink 243 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698