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

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

Issue 11048029: Allow Thread to initialize COM for Windows consumers who need it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | « media/audio/audio_input_device_unittest.cc ('k') | media/audio/audio_manager_base.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 <cmath> 5 #include <cmath>
6 6
7 #include "base/logging.h"
7 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
8 #include "media/audio/audio_io.h" 9 #include "media/audio/audio_io.h"
9 #include "media/audio/audio_manager_base.h" 10 #include "media/audio/audio_manager_base.h"
10 #include "media/audio/audio_util.h" 11 #include "media/audio/audio_util.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 #if defined(OS_WIN) 14 #if defined(OS_WIN)
14 #include "base/win/scoped_com_initializer.h" 15 #include "base/win/scoped_com_initializer.h"
15 #endif 16 #endif
16 17
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Restores the volume to the original value. 161 // Restores the volume to the original value.
161 ais->SetVolume(original_volume); 162 ais->SetVolume(original_volume);
162 current_volume = ais->GetVolume(); 163 current_volume = ais->GetVolume();
163 EXPECT_EQ(original_volume, current_volume); 164 EXPECT_EQ(original_volume, current_volume);
164 165
165 ais->Close(); 166 ais->Close();
166 } 167 }
167 } 168 }
168 169
169 } // namespace media 170 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_input_device_unittest.cc ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698