| 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 <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/test/test_message_loop.h" | 13 #include "base/test/test_message_loop.h" |
| 14 #include "base/test/test_timeouts.h" | 14 #include "base/test/test_timeouts.h" |
| 15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
| 17 #include "media/audio/cras/audio_manager_cras.h" | 17 #include "media/audio/cras/audio_manager_cras.h" |
| 18 #include "media/audio/fake_audio_log_factory.h" | 18 #include "media/audio/fake_audio_log_factory.h" |
| 19 #include "media/audio/mock_audio_source_callback.h" | 19 #include "media/audio/mock_audio_source_callback.h" |
| 20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 22 |
| 23 // cras_util.h defines custom min/max macros which break compilation, so ensure | 23 // cras_util.h defines custom min/max macros which break compilation, so ensure |
| 24 // it's not included until last. #if avoids presubmit errors. | 24 // it's not included until last. #if avoids presubmit errors. |
| 25 #if defined(USE_CRAS) | 25 #if defined(USE_CRAS) |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 // Wait for samples to be captured. | 164 // Wait for samples to be captured. |
| 165 EXPECT_TRUE(event.TimedWait(TestTimeouts::action_timeout())); | 165 EXPECT_TRUE(event.TimedWait(TestTimeouts::action_timeout())); |
| 166 | 166 |
| 167 test_stream->Stop(); | 167 test_stream->Stop(); |
| 168 | 168 |
| 169 test_stream->Close(); | 169 test_stream->Close(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace media | 172 } // namespace media |
| OLD | NEW |