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 "base/environment.h" | 5 #include "base/environment.h" |
6 #include "base/test/test_timeouts.h" | 6 #include "base/test/test_timeouts.h" |
7 #include "content/renderer/media/audio_hardware.h" | 7 #include "content/renderer/media/audio_hardware.h" |
8 #include "content/renderer/media/webrtc_audio_device_impl.h" | 8 #include "content/renderer/media/webrtc_audio_device_impl.h" |
9 #include "content/test/webrtc_audio_device_test.h" | 9 #include "content/test/webrtc_audio_device_test.h" |
10 #include "media/audio/audio_manager.h" | 10 #include "media/audio/audio_manager.h" |
11 #include "media/audio/audio_util.h" | 11 #include "media/audio/audio_util.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
13 #include "third_party/webrtc/voice_engine/main/interface/voe_audio_processing.h" | 13 #include "third_party/webrtc/voice_engine/include/voe_audio_processing.h" |
14 #include "third_party/webrtc/voice_engine/main/interface/voe_base.h" | 14 #include "third_party/webrtc/voice_engine/include/voe_base.h" |
15 #include "third_party/webrtc/voice_engine/main/interface/voe_external_media.h" | 15 #include "third_party/webrtc/voice_engine/include/voe_external_media.h" |
16 #include "third_party/webrtc/voice_engine/main/interface/voe_file.h" | 16 #include "third_party/webrtc/voice_engine/include/voe_file.h" |
17 #include "third_party/webrtc/voice_engine/main/interface/voe_network.h" | 17 #include "third_party/webrtc/voice_engine/include/voe_network.h" |
18 | 18 |
19 using testing::_; | 19 using testing::_; |
20 using testing::AnyNumber; | 20 using testing::AnyNumber; |
21 using testing::InvokeWithoutArgs; | 21 using testing::InvokeWithoutArgs; |
22 using testing::Return; | 22 using testing::Return; |
23 using testing::StrEq; | 23 using testing::StrEq; |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 class AudioUtil : public AudioUtilInterface { | 27 class AudioUtil : public AudioUtilInterface { |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 MessageLoop::QuitClosure(), | 511 MessageLoop::QuitClosure(), |
512 TestTimeouts::action_timeout()); | 512 TestTimeouts::action_timeout()); |
513 message_loop_.Run(); | 513 message_loop_.Run(); |
514 | 514 |
515 EXPECT_EQ(0, base->StopSend(ch)); | 515 EXPECT_EQ(0, base->StopSend(ch)); |
516 EXPECT_EQ(0, base->StopPlayout(ch)); | 516 EXPECT_EQ(0, base->StopPlayout(ch)); |
517 | 517 |
518 EXPECT_EQ(0, base->DeleteChannel(ch)); | 518 EXPECT_EQ(0, base->DeleteChannel(ch)); |
519 EXPECT_EQ(0, base->Terminate()); | 519 EXPECT_EQ(0, base->Terminate()); |
520 } | 520 } |
OLD | NEW |