OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/test/test_message_loop.h" | 10 #include "base/test/test_message_loop.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "media/audio/alsa/alsa_output.h" | 12 #include "media/audio/alsa/alsa_output.h" |
13 #include "media/audio/alsa/alsa_wrapper.h" | 13 #include "media/audio/alsa/alsa_wrapper.h" |
14 #include "media/audio/alsa/audio_manager_alsa.h" | 14 #include "media/audio/alsa/audio_manager_alsa.h" |
15 #include "media/audio/fake_audio_log_factory.h" | 15 #include "media/audio/fake_audio_log_factory.h" |
16 #include "media/audio/mock_audio_source_callback.h" | 16 #include "media/audio/mock_audio_source_callback.h" |
17 #include "media/base/data_buffer.h" | 17 #include "media/base/data_buffer.h" |
18 #include "media/base/seekable_buffer.h" | 18 #include "media/base/seekable_buffer.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 |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 | 854 |
855 // TODO(ajwong): Find a way to test whether or not another task has been | 855 // TODO(ajwong): Find a way to test whether or not another task has been |
856 // posted so we can verify that the Alsa code will indeed break the task | 856 // posted so we can verify that the Alsa code will indeed break the task |
857 // posting loop. | 857 // posting loop. |
858 | 858 |
859 test_stream->TransitionTo(AlsaPcmOutputStream::kIsClosed); | 859 test_stream->TransitionTo(AlsaPcmOutputStream::kIsClosed); |
860 test_stream->Close(); | 860 test_stream->Close(); |
861 } | 861 } |
862 | 862 |
863 } // namespace media | 863 } // namespace media |
OLD | NEW |