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

Unified Diff: ppapi/tests/test_audio_config.cc

Issue 10534152: Add RecommendSampleRate to audio config test. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_audio_config.cc
===================================================================
--- ppapi/tests/test_audio_config.cc (revision 142004)
+++ ppapi/tests/test_audio_config.cc (working copy)
@@ -37,6 +37,13 @@
4096
};
+ // Ask PPB_AudioConfig about the recommended sample rate.
viettrungluu 2012/06/15 21:33:17 Please add a separate test for this ("TestRecommen
+ 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 < sizeof(kSampleRates)/sizeof(kSampleRates[0]); i++) {
PP_AudioSampleRate sample_rate = kSampleRates[i];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698