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

Unified Diff: ppapi/tests/test_audio.cc

Issue 9416107: Change to interface to M19, add a few more test cases to test_audio. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | « ppapi/c/ppb_audio_config.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_audio.cc
===================================================================
--- ppapi/tests/test_audio.cc (revision 122842)
+++ ppapi/tests/test_audio.cc (working copy)
@@ -52,11 +52,19 @@
PP_AUDIOMINSAMPLEFRAMECOUNT,
PP_AUDIOMAXSAMPLEFRAMECOUNT,
// Include some "okay-looking" frame counts; check their validity below.
+ PP_AUDIOSAMPLERATE_44100 / 100, // 10ms @ 44.1kHz
+ PP_AUDIOSAMPLERATE_48000 / 100, // 10ms @ 48kHz
+ 2 * PP_AUDIOSAMPLERATE_44100 / 100, // 20ms @ 44.1kHz
+ 2 * PP_AUDIOSAMPLERATE_48000 / 100, // 20ms @ 48kHz
1024,
2048,
4096
};
-
+ PP_AudioSampleRate sample_rate = audio_config_interface_->RecommendSampleRate(
+ instance_->pp_instance());
+ ASSERT_TRUE(sample_rate == PP_AUDIOSAMPLERATE_NONE ||
+ sample_rate == PP_AUDIOSAMPLERATE_44100 ||
+ sample_rate == PP_AUDIOSAMPLERATE_48000);
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kSampleRates); i++) {
PP_AudioSampleRate sample_rate = kSampleRates[i];
« no previous file with comments | « ppapi/c/ppb_audio_config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698