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

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

Issue 2170263002: [DevTools] Pass error object when reporting exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo Created 4 years, 4 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 20 matching lines...) Expand all
31 31
32 // A null InProcessWorkerObjectProxy, supplied when creating CompositorWorkerThr eads. 32 // A null InProcessWorkerObjectProxy, supplied when creating CompositorWorkerThr eads.
33 class TestCompositorWorkerObjectProxy : public InProcessWorkerObjectProxy { 33 class TestCompositorWorkerObjectProxy : public InProcessWorkerObjectProxy {
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>, int exceptionId) {}
42 void reportConsoleMessage(ConsoleMessage*) override {} 42 void reportConsoleMessage(ConsoleMessage*) override {}
43 void postMessageToPageInspector(const String&) override {} 43 void postMessageToPageInspector(const String&) override {}
44 44
45 void didEvaluateWorkerScript(bool success) override {} 45 void didEvaluateWorkerScript(bool success) override {}
46 void workerGlobalScopeStarted(WorkerGlobalScope*) override {} 46 void workerGlobalScopeStarted(WorkerGlobalScope*) override {}
47 void workerGlobalScopeClosed() override {} 47 void workerGlobalScopeClosed() override {}
48 void workerThreadTerminated() override {} 48 void workerThreadTerminated() override {}
49 void willDestroyWorkerGlobalScope() override {} 49 void willDestroyWorkerGlobalScope() override {}
50 50
51 ExecutionContext* getExecutionContext() override { return m_executionContext .get(); } 51 ExecutionContext* getExecutionContext() override { return m_executionContext .get(); }
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 v8::Isolate* secondIsolate = secondWorker->isolate(); 234 v8::Isolate* secondIsolate = secondWorker->isolate();
235 ASSERT_TRUE(secondIsolate); 235 ASSERT_TRUE(secondIsolate);
236 EXPECT_EQ(firstIsolate, secondIsolate); 236 EXPECT_EQ(firstIsolate, secondIsolate);
237 237
238 // 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.
239 checkWorkerCanExecuteScript(secondWorker.get()); 239 checkWorkerCanExecuteScript(secondWorker.get());
240 secondWorker->terminateAndWait(); 240 secondWorker->terminateAndWait();
241 } 241 }
242 242
243 } // namespace blink 243 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698