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

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

Issue 2337003002: Worker: Notify WorkerThread lifecycle events via WorkerReportingProxy (Closed)
Patch Set: fix tests 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 workerGlobalScopeStarted(WorkerOrWorkletGlobalScope*) override {}
47 void workerGlobalScopeClosed() override {} 46 void workerGlobalScopeClosed() override {}
48 void workerThreadTerminated() override {} 47 void workerThreadTerminated() override {}
49 void willDestroyWorkerGlobalScope() override {} 48 void willDestroyWorkerGlobalScope() override {}
50 49
51 private: 50 private:
52 TestAnimationWorkletReportingProxy() {} 51 TestAnimationWorkletReportingProxy() {}
53 }; 52 };
54 53
55 class AnimationWorkletTestPlatform : public TestingPlatformSupport { 54 class AnimationWorkletTestPlatform : public TestingPlatformSupport {
56 public: 55 public:
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 ASSERT_TRUE(secondIsolate); 211 ASSERT_TRUE(secondIsolate);
213 EXPECT_EQ(firstIsolate, secondIsolate); 212 EXPECT_EQ(firstIsolate, secondIsolate);
214 213
215 // 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
216 // worklet. 215 // worklet.
217 checkWorkletCanExecuteScript(secondWorklet.get()); 216 checkWorkletCanExecuteScript(secondWorklet.get());
218 secondWorklet->terminateAndWait(); 217 secondWorklet->terminateAndWait();
219 } 218 }
220 219
221 } // namespace blink 220 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698