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

Unified Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/BUILD.gn ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp b/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
index f0c6c9f8a871dacefb07ca3d385f2d1b0006a084..aedc6c96e093fed98d867d1e8c1af1809fb55f7c 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp
@@ -50,11 +50,12 @@ class MockCrossOriginLocalFrameClient final : public EmptyLocalFrameClient {
Member<Frame> parent_;
};
-class MockWebAudioDevice : public WebAudioDevice {
+class MockWebAudioDeviceForBaseAudioContext : public WebAudioDevice {
public:
- explicit MockWebAudioDevice(double sample_rate, int frames_per_buffer)
+ explicit MockWebAudioDeviceForBaseAudioContext(double sample_rate,
+ int frames_per_buffer)
: sample_rate_(sample_rate), frames_per_buffer_(frames_per_buffer) {}
- ~MockWebAudioDevice() override = default;
+ ~MockWebAudioDeviceForBaseAudioContext() override = default;
void Start() override {}
void Stop() override {}
@@ -75,8 +76,8 @@ class BaseAudioContextTestPlatform : public TestingPlatformSupport {
WebAudioDevice::RenderCallback*,
const WebString& device_id,
const WebSecurityOrigin&) override {
- return WTF::MakeUnique<MockWebAudioDevice>(AudioHardwareSampleRate(),
- AudioHardwareBufferSize());
+ return WTF::MakeUnique<MockWebAudioDeviceForBaseAudioContext>(
+ AudioHardwareSampleRate(), AudioHardwareBufferSize());
}
double AudioHardwareSampleRate() override { return 44100; }
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/BUILD.gn ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698