OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/cma/backend/alsa/stream_mixer_alsa.h" | 5 #include "chromecast/media/cma/backend/alsa/stream_mixer_alsa.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <limits> | 9 #include <limits> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "chromecast/media/cma/backend/alsa/mock_alsa_wrapper.h" | 17 #include "chromecast/media/cma/backend/alsa/mock_alsa_wrapper.h" |
18 #include "media/base/audio_bus.h" | 18 #include "media/base/audio_bus.h" |
19 #include "testing/gmock/include/gmock/gmock.h" | 19 #include "testing/gmock/include/gmock/gmock.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 using testing::_; | 22 using testing::_; |
23 | 23 |
24 namespace chromecast { | 24 namespace chromecast { |
25 namespace media { | 25 namespace media { |
26 | 26 |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 | 593 |
594 input->SetMaxReadSize(1024); | 594 input->SetMaxReadSize(1024); |
595 EXPECT_CALL(*input, GetResampledData(_, 1024)); | 595 EXPECT_CALL(*input, GetResampledData(_, 1024)); |
596 EXPECT_CALL(*input, AfterWriteFrames(_)); | 596 EXPECT_CALL(*input, AfterWriteFrames(_)); |
597 EXPECT_CALL(*mock_alsa(), PcmWritei(_, _, 1024)).Times(1); | 597 EXPECT_CALL(*mock_alsa(), PcmWritei(_, _, 1024)).Times(1); |
598 mixer->WriteFramesForTest(); | 598 mixer->WriteFramesForTest(); |
599 } | 599 } |
600 | 600 |
601 } // namespace media | 601 } // namespace media |
602 } // namespace chromecast | 602 } // namespace chromecast |
OLD | NEW |