OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/audio_device_description.h" | 17 #include "media/audio/audio_device_description.h" |
18 #include "media/audio/cras/audio_manager_cras.h" | 18 #include "media/audio/cras/audio_manager_cras.h" |
19 #include "media/audio/fake_audio_log_factory.h" | 19 #include "media/audio/fake_audio_log_factory.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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 | 222 |
223 TEST_F(CrasInputStreamTest, CaptureLoopback) { | 223 TEST_F(CrasInputStreamTest, CaptureLoopback) { |
224 CrasInputStream* test_stream = | 224 CrasInputStream* test_stream = |
225 CreateStream(CHANNEL_LAYOUT_STEREO, kTestFramesPerPacket, | 225 CreateStream(CHANNEL_LAYOUT_STEREO, kTestFramesPerPacket, |
226 AudioDeviceDescription::kLoopbackInputDeviceId); | 226 AudioDeviceDescription::kLoopbackInputDeviceId); |
227 EXPECT_TRUE(test_stream->Open()); | 227 EXPECT_TRUE(test_stream->Open()); |
228 test_stream->Close(); | 228 test_stream->Close(); |
229 } | 229 } |
230 | 230 |
231 } // namespace media | 231 } // namespace media |
OLD | NEW |