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/logging.h" | |
6 #include "base/message_loop.h" | 5 #include "base/message_loop.h" |
7 #include "base/string_util.h" | 6 #include "base/string_util.h" |
8 #include "media/audio/linux/alsa_output.h" | 7 #include "media/audio/linux/alsa_output.h" |
9 #include "media/audio/linux/alsa_wrapper.h" | 8 #include "media/audio/linux/alsa_wrapper.h" |
10 #include "media/audio/linux/audio_manager_linux.h" | 9 #include "media/audio/linux/audio_manager_linux.h" |
11 #include "media/base/data_buffer.h" | 10 #include "media/base/data_buffer.h" |
12 #include "media/base/seekable_buffer.h" | 11 #include "media/base/seekable_buffer.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 | 14 |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 | 765 |
767 test_stream_->stop_stream_ = true; | 766 test_stream_->stop_stream_ = true; |
768 test_stream_->ScheduleNextWrite(true); | 767 test_stream_->ScheduleNextWrite(true); |
769 | 768 |
770 // TODO(ajwong): Find a way to test whether or not another task has been | 769 // TODO(ajwong): Find a way to test whether or not another task has been |
771 // posted so we can verify that the Alsa code will indeed break the task | 770 // posted so we can verify that the Alsa code will indeed break the task |
772 // posting loop. | 771 // posting loop. |
773 | 772 |
774 test_stream_->shared_data_.TransitionTo(AlsaPcmOutputStream::kIsClosed); | 773 test_stream_->shared_data_.TransitionTo(AlsaPcmOutputStream::kIsClosed); |
775 } | 774 } |
OLD | NEW |