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

Unified Diff: media/audio/linux/alsa_output_unittest.cc

Issue 173109: Enabled mono playback support for Linux. (Closed)
Patch Set: Nits Created 11 years, 4 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 | « media/audio/linux/alsa_output.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/linux/alsa_output_unittest.cc
diff --git a/media/audio/linux/alsa_output_unittest.cc b/media/audio/linux/alsa_output_unittest.cc
index b215b3ad9050f033a833de8fed4bb3eebbd949cc..917c79f8db671350c7ec9dbbd65555706a8c07e8 100644
--- a/media/audio/linux/alsa_output_unittest.cc
+++ b/media/audio/linux/alsa_output_unittest.cc
@@ -108,10 +108,21 @@ TEST_F(AlsaPcmOutputStreamTest, ConstructedState) {
EXPECT_EQ(AlsaPcmOutputStream::kCreated,
test_stream_->shared_data_.state());
- // Only supports 2 channel.
+ // Should support mono.
test_stream_ = new AlsaPcmOutputStream(kTestDeviceName,
kTestFormat,
- kTestChannels + 1,
+ 1, // Channels.
+ kTestSampleRate,
+ kTestBitsPerSample,
+ &mock_alsa_wrapper_,
+ &message_loop_);
+ EXPECT_EQ(AlsaPcmOutputStream::kCreated,
+ test_stream_->shared_data_.state());
+
+ // Should not support multi-channel.
+ test_stream_ = new AlsaPcmOutputStream(kTestDeviceName,
+ kTestFormat,
+ 3, // Channels.
kTestSampleRate,
kTestBitsPerSample,
&mock_alsa_wrapper_,
« no previous file with comments | « media/audio/linux/alsa_output.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698