OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
11 #include "base/sync_socket.h" | 11 #include "base/sync_socket.h" |
12 #include "base/test/test_timeouts.h" | 12 #include "base/test/test_timeouts.h" |
13 #include "media/audio/audio_output_device.h" | 13 #include "media/audio/audio_output_device.h" |
14 #include "media/audio/audio_util.h" | |
15 #include "media/audio/sample_rates.h" | 14 #include "media/audio/sample_rates.h" |
| 15 #include "media/audio/shared_memory_util.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gmock_mutant.h" | 17 #include "testing/gmock_mutant.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 using base::CancelableSyncSocket; | 20 using base::CancelableSyncSocket; |
21 using base::SharedMemory; | 21 using base::SharedMemory; |
22 using base::SyncSocket; | 22 using base::SyncSocket; |
23 using testing::_; | 23 using testing::_; |
24 using testing::DoAll; | 24 using testing::DoAll; |
25 using testing::Invoke; | 25 using testing::Invoke; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 io_loop_.Run(); | 222 io_loop_.Run(); |
223 | 223 |
224 // Close the stream sequence. | 224 // Close the stream sequence. |
225 EXPECT_CALL(audio_output_ipc_, CloseStream(stream_id_)); | 225 EXPECT_CALL(audio_output_ipc_, CloseStream(stream_id_)); |
226 | 226 |
227 audio_device->Stop(); | 227 audio_device->Stop(); |
228 io_loop_.RunAllPending(); | 228 io_loop_.RunAllPending(); |
229 } | 229 } |
230 | 230 |
231 } // namespace media. | 231 } // namespace media. |
OLD | NEW |