OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "chromecast/media/audio/cast_audio_mixer.h" | 5 #include "chromecast/media/audio/cast_audio_mixer.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
15 #include "base/time/time.h" | 16 #include "base/time/time.h" |
16 #include "chromecast/media/audio/cast_audio_manager.h" | 17 #include "chromecast/media/audio/cast_audio_manager.h" |
17 #include "chromecast/media/audio/cast_audio_output_stream.h" | 18 #include "chromecast/media/audio/cast_audio_output_stream.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
20 | 21 |
21 namespace chromecast { | 22 namespace chromecast { |
22 namespace media { | 23 namespace media { |
23 namespace { | 24 namespace { |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 455 |
455 EXPECT_CALL(mock_mixer_stream(), Stop()); | 456 EXPECT_CALL(mock_mixer_stream(), Stop()); |
456 EXPECT_CALL(mock_mixer_stream(), Close()); | 457 EXPECT_CALL(mock_mixer_stream(), Close()); |
457 EXPECT_CALL(mock_manager(), ReleaseOutputStream(stream)); | 458 EXPECT_CALL(mock_manager(), ReleaseOutputStream(stream)); |
458 stream->Close(); | 459 stream->Close(); |
459 } | 460 } |
460 | 461 |
461 } // namespace | 462 } // namespace |
462 } // namespace media | 463 } // namespace media |
463 } // namespace chromecast | 464 } // namespace chromecast |
OLD | NEW |