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

Side by Side Diff: media/audio/mac/audio_output_mac_unittest.cc

Issue 3185022: Share one thread between all AudioOutputControllers instead of creating one per stream. (Closed)
Patch Set: - Created 10 years, 4 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/mac/audio_manager_mac.cc ('k') | media/audio/openbsd/audio_manager_openbsd.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) 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "media/audio/audio_io.h" 6 #include "media/audio/audio_io.h"
7 #include "media/audio/audio_manager.h"
7 #include "media/audio/simple_sources.h" 8 #include "media/audio/simple_sources.h"
8 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 11
11 using ::testing::_; 12 using ::testing::_;
12 using ::testing::AnyNumber; 13 using ::testing::AnyNumber;
13 using ::testing::DoAll; 14 using ::testing::DoAll;
14 using ::testing::InSequence; 15 using ::testing::InSequence;
15 using ::testing::Invoke; 16 using ::testing::Invoke;
16 using ::testing::NiceMock; 17 using ::testing::NiceMock;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 .WillOnce(Return(0)); 166 .WillOnce(Return(0));
166 EXPECT_CALL(source, OnMoreData(oas, NotNull(), bytes_100_ms, _)) 167 EXPECT_CALL(source, OnMoreData(oas, NotNull(), bytes_100_ms, _))
167 .Times(AnyNumber()) 168 .Times(AnyNumber())
168 .WillRepeatedly(Return(0)); 169 .WillRepeatedly(Return(0));
169 170
170 oas->Start(&source); 171 oas->Start(&source);
171 usleep(500000); 172 usleep(500000);
172 oas->Stop(); 173 oas->Stop();
173 oas->Close(); 174 oas->Close();
174 } 175 }
OLDNEW
« no previous file with comments | « media/audio/mac/audio_manager_mac.cc ('k') | media/audio/openbsd/audio_manager_openbsd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698