Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: content/renderer/media/webrtc_audio_device_unittest.cc

Issue 11232014: Move a bunch of code in content\renderer to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/media/webrtc_audio_device_impl.cc ('k') | content/renderer/mhtml_generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc_audio_device_impl.cc ('k') | content/renderer/mhtml_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698