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

Side by Side Diff: media/audio/win/audio_output_win_unittest.cc

Issue 3185022: Share one thread between all AudioOutputControllers instead of creating one per stream. (Closed)
Patch Set: - Created 10 years, 3 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
« no previous file with comments | « media/audio/win/audio_manager_win.cc ('k') | media/filters/audio_renderer_impl.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <windows.h> 5 #include <windows.h>
6 #include <mmsystem.h> 6 #include <mmsystem.h>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/sync_socket.h" 12 #include "base/sync_socket.h"
13 #include "media/audio/audio_io.h" 13 #include "media/audio/audio_io.h"
14 #include "media/audio/audio_manager.h"
14 #include "media/audio/simple_sources.h" 15 #include "media/audio/simple_sources.h"
15 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
16 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
17 18
18 using ::testing::_; 19 using ::testing::_;
19 using ::testing::AnyNumber; 20 using ::testing::AnyNumber;
20 using ::testing::DoAll; 21 using ::testing::DoAll;
21 using ::testing::InSequence; 22 using ::testing::InSequence;
22 using ::testing::NiceMock; 23 using ::testing::NiceMock;
23 using ::testing::NotNull; 24 using ::testing::NotNull;
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 704
704 oas->Start(&source); 705 oas->Start(&source);
705 706
706 ::WaitForSingleObject(thread, INFINITE); 707 ::WaitForSingleObject(thread, INFINITE);
707 ::CloseHandle(thread); 708 ::CloseHandle(thread);
708 delete sockets[1]; 709 delete sockets[1];
709 710
710 oas->Stop(); 711 oas->Stop();
711 oas->Close(); 712 oas->Close();
712 } 713 }
OLDNEW
« no previous file with comments | « media/audio/win/audio_manager_win.cc ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698