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

Unified Diff: components/test_runner/mock_web_audio_device.h

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 | « no previous file | components/test_runner/mock_web_audio_device.cc » ('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.h
diff --git a/components/test_runner/mock_web_audio_device.h b/components/test_runner/mock_web_audio_device.h
index 1c45c4352965058776b50cdcf059a33f1f8fadc4..cf9f02d0940d68438c4beda31e43575edb9e3c21 100644
--- a/components/test_runner/mock_web_audio_device.h
+++ b/components/test_runner/mock_web_audio_device.h
@@ -12,16 +12,18 @@ namespace test_runner {
class MockWebAudioDevice : public blink::WebAudioDevice {
public:
- explicit MockWebAudioDevice(double sample_rate);
+ explicit MockWebAudioDevice(double sample_rate, int frames_per_buffer);
~MockWebAudioDevice() override;
// blink::WebAudioDevice:
void start() override;
void stop() override;
double sampleRate() override;
+ int framesPerBuffer() override;
private:
double sample_rate_;
+ int frames_per_buffer_;
DISALLOW_COPY_AND_ASSIGN(MockWebAudioDevice);
};
« no previous file with comments | « no previous file | components/test_runner/mock_web_audio_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698