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

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

Issue 2337253005: Worker: Canonicalize names of WorkerThread lifecycle events in WorkerReportingProxy (Closed)
Patch Set: fix comments Created 4 years, 3 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/AnimationWorkletThread.h" 5 #include "modules/compositorworker/AnimationWorkletThread.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 "bindings/core/v8/WorkerOrWorkletScriptController.h" 10 #include "bindings/core/v8/WorkerOrWorkletScriptController.h"
(...skipping 25 matching lines...) Expand all
36 { 36 {
37 return wrapUnique(new TestAnimationWorkletReportingProxy()); 37 return wrapUnique(new TestAnimationWorkletReportingProxy());
38 } 38 }
39 39
40 // (Empty) WorkerReportingProxy implementation: 40 // (Empty) WorkerReportingProxy implementation:
41 void reportException(const String& errorMessage, std::unique_ptr<SourceLocat ion>, int exceptionId) override {} 41 void reportException(const String& errorMessage, std::unique_ptr<SourceLocat ion>, int exceptionId) override {}
42 void reportConsoleMessage(MessageSource, MessageLevel, const String& message , SourceLocation*) override {} 42 void reportConsoleMessage(MessageSource, MessageLevel, const String& message , SourceLocation*) 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 workerGlobalScopeClosed() override {} 46 void didCloseWorkerGlobalScope() override {}
47 void workerThreadTerminated() override {}
48 void willDestroyWorkerGlobalScope() override {} 47 void willDestroyWorkerGlobalScope() override {}
48 void didTerminateWorkerThread() override {}
49 49
50 private: 50 private:
51 TestAnimationWorkletReportingProxy() {} 51 TestAnimationWorkletReportingProxy() {}
52 }; 52 };
53 53
54 class AnimationWorkletTestPlatform : public TestingPlatformSupport { 54 class AnimationWorkletTestPlatform : public TestingPlatformSupport {
55 public: 55 public:
56 AnimationWorkletTestPlatform() 56 AnimationWorkletTestPlatform()
57 : m_thread(wrapUnique(m_oldPlatform->createThread("Compositor"))) 57 : m_thread(wrapUnique(m_oldPlatform->createThread("Compositor")))
58 { 58 {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 ASSERT_TRUE(secondIsolate); 211 ASSERT_TRUE(secondIsolate);
212 EXPECT_EQ(firstIsolate, secondIsolate); 212 EXPECT_EQ(firstIsolate, secondIsolate);
213 213
214 // Verify that the isolate can run some scripts correctly in the second 214 // Verify that the isolate can run some scripts correctly in the second
215 // worklet. 215 // worklet.
216 checkWorkletCanExecuteScript(secondWorklet.get()); 216 checkWorkletCanExecuteScript(secondWorklet.get());
217 secondWorklet->terminateAndWait(); 217 secondWorklet->terminateAndWait();
218 } 218 }
219 219
220 } // namespace blink 220 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698