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

Unified Diff: media/audio/win/core_audio_util_win_unittest.cc

Issue 1130753005: Get audio_unittests passing with h/w on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: MTA -> STA Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/win/audio_output_win_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/win/core_audio_util_win_unittest.cc
diff --git a/media/audio/win/core_audio_util_win_unittest.cc b/media/audio/win/core_audio_util_win_unittest.cc
index d3dc85e32e2135d86863cd1b003842c703f473e2..f337849eafb02c1ed809fb1a76e3b2884587609a 100644
--- a/media/audio/win/core_audio_util_win_unittest.cc
+++ b/media/audio/win/core_audio_util_win_unittest.cc
@@ -19,19 +19,17 @@ namespace media {
class CoreAudioUtilWinTest : public ::testing::Test {
protected:
- // The test runs on a COM thread in the multithreaded apartment (MTA).
+ // The tests must run on a COM thread.
// If we don't initialize the COM library on a thread before using COM,
// all function calls will return CO_E_NOTINITIALIZED.
- CoreAudioUtilWinTest()
- : com_init_(ScopedCOMInitializer::kMTA) {
+ CoreAudioUtilWinTest() {
DCHECK(com_init_.succeeded());
}
~CoreAudioUtilWinTest() override {}
bool DevicesAvailable() {
- if (!CoreAudioUtil::IsSupported())
- return false;
- return CoreAudioUtil::NumberOfActiveDevices(eCapture) > 0 &&
+ return CoreAudioUtil::IsSupported() &&
+ CoreAudioUtil::NumberOfActiveDevices(eCapture) > 0 &&
CoreAudioUtil::NumberOfActiveDevices(eRender) > 0;
}
« no previous file with comments | « media/audio/win/audio_output_win_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698