| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/webaudio/AudioWorkletThread.h" | 5 #include "modules/webaudio/AudioWorkletThread.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 17 matching lines...) Expand all Loading... |
| 28 #include <memory> | 28 #include <memory> |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| 33 | 33 |
| 34 // A null WorkerReportingProxy, supplied when creating AudioWorkletThreads. | 34 // A null WorkerReportingProxy, supplied when creating AudioWorkletThreads. |
| 35 class TestAudioWorkletReportingProxy : public WorkerReportingProxy { | 35 class TestAudioWorkletReportingProxy : public WorkerReportingProxy { |
| 36 public: | 36 public: |
| 37 static std::unique_ptr<TestAudioWorkletReportingProxy> create() { | 37 static std::unique_ptr<TestAudioWorkletReportingProxy> create() { |
| 38 return wrapUnique(new TestAudioWorkletReportingProxy()); | 38 return WTF::wrapUnique(new TestAudioWorkletReportingProxy()); |
| 39 } | 39 } |
| 40 | 40 |
| 41 // (Empty) WorkerReportingProxy implementation: | 41 // (Empty) WorkerReportingProxy implementation: |
| 42 void countFeature(UseCounter::Feature) override {} | 42 void countFeature(UseCounter::Feature) override {} |
| 43 void countDeprecation(UseCounter::Feature) override {} | 43 void countDeprecation(UseCounter::Feature) override {} |
| 44 void reportException(const String& errorMessage, | 44 void reportException(const String& errorMessage, |
| 45 std::unique_ptr<SourceLocation>, | 45 std::unique_ptr<SourceLocation>, |
| 46 int exceptionId) override {} | 46 int exceptionId) override {} |
| 47 void reportConsoleMessage(MessageSource, | 47 void reportConsoleMessage(MessageSource, |
| 48 MessageLevel, | 48 MessageLevel, |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 ASSERT_TRUE(secondIsolate); | 196 ASSERT_TRUE(secondIsolate); |
| 197 EXPECT_EQ(firstIsolate, secondIsolate); | 197 EXPECT_EQ(firstIsolate, secondIsolate); |
| 198 | 198 |
| 199 // Verify that the isolate can run some scripts correctly in the second | 199 // Verify that the isolate can run some scripts correctly in the second |
| 200 // worklet. | 200 // worklet. |
| 201 checkWorkletCanExecuteScript(secondWorklet.get()); | 201 checkWorkletCanExecuteScript(secondWorklet.get()); |
| 202 secondWorklet->terminateAndWait(); | 202 secondWorklet->terminateAndWait(); |
| 203 } | 203 } |
| 204 | 204 |
| 205 } // namespace blink | 205 } // namespace blink |
| OLD | NEW |