| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |