| 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/include/voe_audio_processing.h" | 13 #include "third_party/webrtc/voice_engine/include/voe_audio_processing.h" |
| 14 #include "third_party/webrtc/voice_engine/include/voe_base.h" | 14 #include "third_party/webrtc/voice_engine/include/voe_base.h" |
| 15 #include "third_party/webrtc/voice_engine/include/voe_external_media.h" | 15 #include "third_party/webrtc/voice_engine/include/voe_external_media.h" |
| 16 #include "third_party/webrtc/voice_engine/include/voe_file.h" | 16 #include "third_party/webrtc/voice_engine/include/voe_file.h" |
| 17 #include "third_party/webrtc/voice_engine/include/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 content { |
| 26 |
| 25 namespace { | 27 namespace { |
| 26 | 28 |
| 27 class AudioUtil : public AudioUtilInterface { | 29 class AudioUtil : public AudioUtilInterface { |
| 28 public: | 30 public: |
| 29 AudioUtil() {} | 31 AudioUtil() {} |
| 30 | 32 |
| 31 virtual int GetAudioHardwareSampleRate() OVERRIDE { | 33 virtual int GetAudioHardwareSampleRate() OVERRIDE { |
| 32 return media::GetAudioHardwareSampleRate(); | 34 return media::GetAudioHardwareSampleRate(); |
| 33 } | 35 } |
| 34 virtual int GetAudioInputHardwareSampleRate( | 36 virtual int GetAudioInputHardwareSampleRate( |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 MessageLoop::QuitClosure(), | 513 MessageLoop::QuitClosure(), |
| 512 base::TimeDelta::FromSeconds(2)); | 514 base::TimeDelta::FromSeconds(2)); |
| 513 message_loop_.Run(); | 515 message_loop_.Run(); |
| 514 | 516 |
| 515 EXPECT_EQ(0, base->StopSend(ch)); | 517 EXPECT_EQ(0, base->StopSend(ch)); |
| 516 EXPECT_EQ(0, base->StopPlayout(ch)); | 518 EXPECT_EQ(0, base->StopPlayout(ch)); |
| 517 | 519 |
| 518 EXPECT_EQ(0, base->DeleteChannel(ch)); | 520 EXPECT_EQ(0, base->DeleteChannel(ch)); |
| 519 EXPECT_EQ(0, base->Terminate()); | 521 EXPECT_EQ(0, base->Terminate()); |
| 520 } | 522 } |
| 523 |
| 524 } // namespace content |
| OLD | NEW |