Index: trunk/src/content/renderer/media/media_stream_audio_processor_unittest.cc |
=================================================================== |
--- trunk/src/content/renderer/media/media_stream_audio_processor_unittest.cc (revision 275781) |
+++ trunk/src/content/renderer/media/media_stream_audio_processor_unittest.cc (working copy) |
@@ -154,7 +154,9 @@ |
}; |
TEST_F(MediaStreamAudioProcessorTest, WithoutAudioProcessing) { |
- // Setup the audio processor without enabling the flag. |
+ // Setup the audio processor with disabled flag on. |
+ CommandLine::ForCurrentProcess()->AppendSwitch( |
+ switches::kDisableAudioTrackProcessing); |
MockMediaConstraintFactory constraint_factory; |
scoped_refptr<WebRtcAudioDeviceImpl> webrtc_audio_device( |
new WebRtcAudioDeviceImpl()); |
@@ -175,9 +177,6 @@ |
} |
TEST_F(MediaStreamAudioProcessorTest, WithAudioProcessing) { |
- // Setup the audio processor with the flag enabled. |
- CommandLine::ForCurrentProcess()->AppendSwitch( |
- switches::kEnableAudioTrackProcessing); |
MockMediaConstraintFactory constraint_factory; |
scoped_refptr<WebRtcAudioDeviceImpl> webrtc_audio_device( |
new WebRtcAudioDeviceImpl()); |
@@ -199,9 +198,6 @@ |
} |
TEST_F(MediaStreamAudioProcessorTest, VerifyTabCaptureWithoutAudioProcessing) { |
- // Setup the audio processor with enabling the flag. |
- CommandLine::ForCurrentProcess()->AppendSwitch( |
- switches::kEnableAudioTrackProcessing); |
scoped_refptr<WebRtcAudioDeviceImpl> webrtc_audio_device( |
new WebRtcAudioDeviceImpl()); |
// Create MediaStreamAudioProcessor instance for kMediaStreamSourceTab source. |
@@ -238,10 +234,6 @@ |
} |
TEST_F(MediaStreamAudioProcessorTest, TurnOffDefaultConstraints) { |
- // Setup the audio processor with enabling the flag. |
- CommandLine::ForCurrentProcess()->AppendSwitch( |
- switches::kEnableAudioTrackProcessing); |
- |
// Turn off the default constraints and pass it to MediaStreamAudioProcessor. |
MockMediaConstraintFactory constraint_factory; |
constraint_factory.DisableDefaultAudioConstraints(); |
@@ -264,10 +256,6 @@ |
} |
TEST_F(MediaStreamAudioProcessorTest, VerifyConstraints) { |
- // Setup the audio processor with enabling the flag. |
- CommandLine::ForCurrentProcess()->AppendSwitch( |
- switches::kEnableAudioTrackProcessing); |
- |
static const char* kDefaultAudioConstraints[] = { |
MediaAudioConstraints::kEchoCancellation, |
MediaAudioConstraints::kGoogAudioMirroring, |