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

Unified Diff: components/test_runner/mock_web_audio_device.cc

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Fixes to WebAudioDeviceImpl unit test. Created 3 years, 10 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 | « components/test_runner/mock_web_audio_device.h ('k') | components/test_runner/web_test_interfaces.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/mock_web_audio_device.cc
diff --git a/components/test_runner/mock_web_audio_device.cc b/components/test_runner/mock_web_audio_device.cc
index 6788d86b6fc27d04bb2842c2d1fbfa83547aaf43..bfd83fe47131a884218e9fda76bae15f58432b26 100644
--- a/components/test_runner/mock_web_audio_device.cc
+++ b/components/test_runner/mock_web_audio_device.cc
@@ -6,8 +6,9 @@
namespace test_runner {
-MockWebAudioDevice::MockWebAudioDevice(double sample_rate)
- : sample_rate_(sample_rate) {}
+MockWebAudioDevice::MockWebAudioDevice(double sample_rate,
+ int frames_per_buffer)
+ : sample_rate_(sample_rate), frames_per_buffer_(frames_per_buffer) {}
MockWebAudioDevice::~MockWebAudioDevice() {}
@@ -19,4 +20,8 @@ double MockWebAudioDevice::sampleRate() {
return sample_rate_;
}
+int MockWebAudioDevice::framesPerBuffer() {
+ return frames_per_buffer_;
+}
+
} // namespace test_runner
« no previous file with comments | « components/test_runner/mock_web_audio_device.h ('k') | components/test_runner/web_test_interfaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698