OLD | NEW |
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/environment.h" | 5 #include "base/environment.h" |
6 #include "base/basictypes.h" | 6 #include "base/basictypes.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/task.h" | 8 #include "base/task.h" |
9 #include "base/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 #include "media/audio/audio_output_controller.h" | 10 #include "media/audio/audio_output_controller.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 using ::testing::_; | 14 using ::testing::_; |
15 using ::testing::AtLeast; | 15 using ::testing::AtLeast; |
16 using ::testing::Exactly; | 16 using ::testing::Exactly; |
17 using ::testing::InvokeWithoutArgs; | 17 using ::testing::InvokeWithoutArgs; |
18 using ::testing::NotNull; | 18 using ::testing::NotNull; |
19 using ::testing::Return; | 19 using ::testing::Return; |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 controller->Close(NewRunnableFunction(&SignalClosedEvent, &closed_event_1)); | 323 controller->Close(NewRunnableFunction(&SignalClosedEvent, &closed_event_1)); |
324 | 324 |
325 base::WaitableEvent closed_event_2(true, false); | 325 base::WaitableEvent closed_event_2(true, false); |
326 controller->Close(NewRunnableFunction(&SignalClosedEvent, &closed_event_2)); | 326 controller->Close(NewRunnableFunction(&SignalClosedEvent, &closed_event_2)); |
327 | 327 |
328 closed_event_1.Wait(); | 328 closed_event_1.Wait(); |
329 closed_event_2.Wait(); | 329 closed_event_2.Wait(); |
330 } | 330 } |
331 | 331 |
332 } // namespace media | 332 } // namespace media |
OLD | NEW |