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

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

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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_manager.h ('k') | media/audio/audio_output_proxy.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/bind.h" 5 #include "base/bind.h"
6 #include "base/environment.h" 6 #include "base/environment.h"
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/task.h"
10 #include "base/synchronization/waitable_event.h" 9 #include "base/synchronization/waitable_event.h"
11 #include "media/audio/audio_output_controller.h" 10 #include "media/audio/audio_output_controller.h"
12 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
13 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
14 13
15 using ::testing::_; 14 using ::testing::_;
16 using ::testing::AtLeast; 15 using ::testing::AtLeast;
17 using ::testing::DoAll; 16 using ::testing::DoAll;
18 using ::testing::Exactly; 17 using ::testing::Exactly;
19 using ::testing::InvokeWithoutArgs; 18 using ::testing::InvokeWithoutArgs;
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 controller->Close(base::Bind(&SignalClosedEvent, &closed_event_1)); 424 controller->Close(base::Bind(&SignalClosedEvent, &closed_event_1));
426 425
427 base::WaitableEvent closed_event_2(true, false); 426 base::WaitableEvent closed_event_2(true, false);
428 controller->Close(base::Bind(&SignalClosedEvent, &closed_event_2)); 427 controller->Close(base::Bind(&SignalClosedEvent, &closed_event_2));
429 428
430 closed_event_1.Wait(); 429 closed_event_1.Wait();
431 closed_event_2.Wait(); 430 closed_event_2.Wait();
432 } 431 }
433 432
434 } // namespace media 433 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_manager.h ('k') | media/audio/audio_output_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698