OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/environment.h" | 7 #include "base/environment.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 EXPECT_EQ(0, base->StartPlayout(ch)); | 838 EXPECT_EQ(0, base->StartPlayout(ch)); |
839 EXPECT_EQ(0, base->StartSend(ch)); | 839 EXPECT_EQ(0, base->StartSend(ch)); |
840 scoped_refptr<WebRtcAudioRenderer> renderer( | 840 scoped_refptr<WebRtcAudioRenderer> renderer( |
841 CreateDefaultWebRtcAudioRenderer(kRenderViewId)); | 841 CreateDefaultWebRtcAudioRenderer(kRenderViewId)); |
842 scoped_refptr<MediaStreamAudioRenderer> proxy( | 842 scoped_refptr<MediaStreamAudioRenderer> proxy( |
843 renderer->CreateSharedAudioRendererProxy()); | 843 renderer->CreateSharedAudioRendererProxy()); |
844 EXPECT_TRUE(webrtc_audio_device->SetAudioRenderer(renderer.get())); | 844 EXPECT_TRUE(webrtc_audio_device->SetAudioRenderer(renderer.get())); |
845 proxy->Start(); | 845 proxy->Start(); |
846 proxy->Play(); | 846 proxy->Play(); |
847 | 847 |
848 LOG(INFO) << ">> You should now be able to hear yourself in loopback..."; | 848 VLOG(0) << ">> You should now be able to hear yourself in loopback..."; |
849 message_loop_.PostDelayedTask(FROM_HERE, | 849 message_loop_.PostDelayedTask(FROM_HERE, |
850 base::MessageLoop::QuitClosure(), | 850 base::MessageLoop::QuitClosure(), |
851 base::TimeDelta::FromSeconds(2)); | 851 base::TimeDelta::FromSeconds(2)); |
852 message_loop_.Run(); | 852 message_loop_.Run(); |
853 | 853 |
854 webrtc_audio_device->GetDefaultCapturer()->Stop(); | 854 webrtc_audio_device->GetDefaultCapturer()->Stop(); |
855 proxy->Stop(); | 855 proxy->Stop(); |
856 EXPECT_EQ(0, base->StopSend(ch)); | 856 EXPECT_EQ(0, base->StopSend(ch)); |
857 EXPECT_EQ(0, base->StopPlayout(ch)); | 857 EXPECT_EQ(0, base->StopPlayout(ch)); |
858 | 858 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 LOG(WARNING) << "Test disabled due to the test hangs on WinXP."; | 1008 LOG(WARNING) << "Test disabled due to the test hangs on WinXP."; |
1009 return; | 1009 return; |
1010 } | 1010 } |
1011 #endif | 1011 #endif |
1012 int latency = RunWebRtcLoopbackTimeTest(audio_manager_.get(), true); | 1012 int latency = RunWebRtcLoopbackTimeTest(audio_manager_.get(), true); |
1013 PrintPerfResultMs("webrtc_loopback_with_signal_processing (100 packets)", | 1013 PrintPerfResultMs("webrtc_loopback_with_signal_processing (100 packets)", |
1014 "t", latency); | 1014 "t", latency); |
1015 } | 1015 } |
1016 | 1016 |
1017 } // namespace content | 1017 } // namespace content |
OLD | NEW |