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

Side by Side Diff: media/audio/audio_input_device_unittest.cc

Issue 9805001: Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « media/audio/audio_buffers_state.cc ('k') | media/audio/audio_input_stream_impl.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/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/win/scoped_com_initializer.h" 7 #include "base/win/scoped_com_initializer.h"
8 #include "media/audio/audio_manager.h" 8 #include "media/audio/audio_manager.h"
9 #include "media/audio/audio_manager_base.h" 9 #include "media/audio/audio_manager_base.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 #if defined(OS_WIN) 12 #if defined(OS_WIN)
13 #include "media/audio/win/audio_manager_win.h" 13 #include "media/audio/win/audio_manager_win.h"
14 #include "media/audio/win/wavein_input_win.h" 14 #include "media/audio/win/wavein_input_win.h"
15 #endif 15 #endif
16 16
17 using base::win::ScopedCOMInitializer; 17 using base::win::ScopedCOMInitializer;
18 using media::AudioDeviceNames; 18
19 namespace media {
19 20
20 // Test fixture which allows us to override the default enumeration API on 21 // Test fixture which allows us to override the default enumeration API on
21 // Windows. 22 // Windows.
22 class AudioInputDeviceTest 23 class AudioInputDeviceTest
23 : public ::testing::Test { 24 : public ::testing::Test {
24 protected: 25 protected:
25 AudioInputDeviceTest() 26 AudioInputDeviceTest()
26 : audio_manager_(AudioManager::Create()), 27 : audio_manager_(AudioManager::Create()),
27 com_init_(ScopedCOMInitializer::kMTA) { 28 com_init_(ScopedCOMInitializer::kMTA) {
28 } 29 }
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 EXPECT_EQ(i->unique_id, converted_id); 165 EXPECT_EQ(i->unique_id, converted_id);
165 } else { 166 } else {
166 // MMDevice-style device IDs should be converted to WaveIn-style device 167 // MMDevice-style device IDs should be converted to WaveIn-style device
167 // IDs. 168 // IDs.
168 EXPECT_NE(i->unique_id, converted_id); 169 EXPECT_NE(i->unique_id, converted_id);
169 } 170 }
170 } 171 }
171 } 172 }
172 173
173 #endif 174 #endif
175
176 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_buffers_state.cc ('k') | media/audio/audio_input_stream_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698