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

Unified Diff: webrtc/modules/audio_device/test/audio_device_test_api.cc

Issue 2333273002: Now uses rtc::Buffer in AudioDeviceBuffer (Closed)
Patch Set: Fixes broken unittests Created 4 years, 2 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 | « webrtc/modules/audio_device/audio_device_buffer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_device/test/audio_device_test_api.cc
diff --git a/webrtc/modules/audio_device/test/audio_device_test_api.cc b/webrtc/modules/audio_device/test/audio_device_test_api.cc
index d124e9c56ecfe9c1fda90d03911b2d661b3ab8ff..3c754203b02794ff2713b8575788ccf5c7109abe 100644
--- a/webrtc/modules/audio_device/test/audio_device_test_api.cc
+++ b/webrtc/modules/audio_device/test/audio_device_test_api.cc
@@ -1494,39 +1494,6 @@ TEST_F(AudioDeviceAPITest, StereoRecordingTests) {
}
}
-TEST_F(AudioDeviceAPITest, RecordingChannelTests) {
- // the user in Win Core Audio
- AudioDeviceModule::ChannelType channelType(AudioDeviceModule::kChannelBoth);
- CheckInitialRecordingStates();
- EXPECT_FALSE(audio_device_->Playing());
-
- // fail tests
- EXPECT_EQ(0, audio_device_->SetStereoRecording(false));
- EXPECT_EQ(-1, audio_device_->SetRecordingChannel(
- AudioDeviceModule::kChannelBoth));
-
- // initialize kDefaultCommunicationDevice and modify/retrieve stereo support
- EXPECT_EQ(0, audio_device_->SetRecordingDevice(
- MACRO_DEFAULT_COMMUNICATION_DEVICE));
- bool available;
- EXPECT_EQ(0, audio_device_->StereoRecordingIsAvailable(&available));
- if (available) {
- EXPECT_EQ(0, audio_device_->SetStereoRecording(true));
- EXPECT_EQ(0, audio_device_->SetRecordingChannel(
- AudioDeviceModule::kChannelBoth));
- EXPECT_EQ(0, audio_device_->RecordingChannel(&channelType));
- EXPECT_EQ(AudioDeviceModule::kChannelBoth, channelType);
- EXPECT_EQ(0, audio_device_->SetRecordingChannel(
- AudioDeviceModule::kChannelLeft));
- EXPECT_EQ(0, audio_device_->RecordingChannel(&channelType));
- EXPECT_EQ(AudioDeviceModule::kChannelLeft, channelType);
- EXPECT_EQ(0, audio_device_->SetRecordingChannel(
- AudioDeviceModule::kChannelRight));
- EXPECT_EQ(0, audio_device_->RecordingChannel(&channelType));
- EXPECT_EQ(AudioDeviceModule::kChannelRight, channelType);
- }
-}
-
TEST_F(AudioDeviceAPITest, PlayoutBufferTests) {
AudioDeviceModule::BufferType bufferType;
uint16_t sizeMS(0);
« no previous file with comments | « webrtc/modules/audio_device/audio_device_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698