Chromium Code Reviews| Index: webrtc/test/call_test.cc |
| diff --git a/webrtc/test/call_test.cc b/webrtc/test/call_test.cc |
| index 9521d3430d3fee35da27093961001f377f2f29a4..e50a5baeafbae2c76c7f7db51f614ce8cff718d9 100644 |
| --- a/webrtc/test/call_test.cc |
| +++ b/webrtc/test/call_test.cc |
| @@ -140,14 +140,14 @@ void CallTest::Start() { |
| for (VideoReceiveStream* video_recv_stream : video_receive_streams_) |
| video_recv_stream->Start(); |
| if (audio_send_stream_) { |
| - fake_send_audio_device_->Start(); |
| + fake_send_audio_device_->StartRecordingPulsedNoise(256); |
| audio_send_stream_->Start(); |
| EXPECT_EQ(0, voe_send_.base->StartSend(voe_send_.channel_id)); |
| } |
| for (AudioReceiveStream* audio_recv_stream : audio_receive_streams_) |
| audio_recv_stream->Start(); |
| if (!audio_receive_streams_.empty()) { |
| - fake_recv_audio_device_->Start(); |
| + fake_recv_audio_device_->StartPlayout(); |
| EXPECT_EQ(0, voe_recv_.base->StartPlayout(voe_recv_.channel_id)); |
| } |
| for (FlexfecReceiveStream* flexfec_recv_stream : flexfec_receive_streams_) |
| @@ -162,13 +162,13 @@ void CallTest::Stop() { |
| for (FlexfecReceiveStream* flexfec_recv_stream : flexfec_receive_streams_) |
| flexfec_recv_stream->Stop(); |
| if (!audio_receive_streams_.empty()) { |
| - fake_recv_audio_device_->Stop(); |
| + fake_recv_audio_device_->StopPlayout(); |
| EXPECT_EQ(0, voe_recv_.base->StopPlayout(voe_recv_.channel_id)); |
| } |
| for (AudioReceiveStream* audio_recv_stream : audio_receive_streams_) |
| audio_recv_stream->Stop(); |
| if (audio_send_stream_) { |
| - fake_send_audio_device_->Stop(); |
| + fake_send_audio_device_->StopRecording(); |
| EXPECT_EQ(0, voe_send_.base->StopSend(voe_send_.channel_id)); |
| audio_send_stream_->Stop(); |
| } |
| @@ -309,12 +309,8 @@ void CallTest::CreateFrameGeneratorCapturer(int framerate, |
| } |
| void CallTest::CreateFakeAudioDevices() { |
| - fake_send_audio_device_.reset(new FakeAudioDevice( |
| - clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"), |
| - DriftingClock::kNoDrift)); |
| - fake_recv_audio_device_.reset(new FakeAudioDevice( |
| - clock_, test::ResourcePath("voice_engine/audio_long16", "pcm"), |
| - DriftingClock::kNoDrift)); |
| + fake_send_audio_device_.reset(new FakeAudioDevice(1.0, 48000)); |
|
peah-webrtc
2017/01/30 06:45:08
Nit: Should be 1.f instead of 1.0 as the first con
perkj_webrtc
2017/01/30 12:02:11
Done.
|
| + fake_recv_audio_device_.reset(new FakeAudioDevice(1.0, 48000)); |
|
peah-webrtc
2017/01/30 06:45:08
Nit: Should be 1.f instead of 1.0 as the first con
perkj_webrtc
2017/01/30 12:02:11
Done.
|
| } |
| void CallTest::CreateVideoStreams() { |