OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "webrtc/base/scoped_ref_ptr.h" | 22 #include "webrtc/base/scoped_ref_ptr.h" |
23 #include "webrtc/base/timeutils.h" | 23 #include "webrtc/base/timeutils.h" |
24 #include "webrtc/modules/audio_device/android/audio_common.h" | 24 #include "webrtc/modules/audio_device/android/audio_common.h" |
25 #include "webrtc/modules/audio_device/android/audio_manager.h" | 25 #include "webrtc/modules/audio_device/android/audio_manager.h" |
26 #include "webrtc/modules/audio_device/android/build_info.h" | 26 #include "webrtc/modules/audio_device/android/build_info.h" |
27 #include "webrtc/modules/audio_device/android/ensure_initialized.h" | 27 #include "webrtc/modules/audio_device/android/ensure_initialized.h" |
28 #include "webrtc/modules/audio_device/audio_device_impl.h" | 28 #include "webrtc/modules/audio_device/audio_device_impl.h" |
29 #include "webrtc/modules/audio_device/include/audio_device.h" | 29 #include "webrtc/modules/audio_device/include/audio_device.h" |
30 #include "webrtc/modules/audio_device/include/mock_audio_transport.h" | 30 #include "webrtc/modules/audio_device/include/mock_audio_transport.h" |
31 #include "webrtc/system_wrappers/include/event_wrapper.h" | 31 #include "webrtc/system_wrappers/include/event_wrapper.h" |
32 #include "webrtc/system_wrappers/include/sleep.h" | |
33 #include "webrtc/test/gmock.h" | 32 #include "webrtc/test/gmock.h" |
34 #include "webrtc/test/gtest.h" | 33 #include "webrtc/test/gtest.h" |
35 #include "webrtc/test/testsupport/fileutils.h" | 34 #include "webrtc/test/testsupport/fileutils.h" |
36 | 35 |
37 using std::cout; | 36 using std::cout; |
38 using std::endl; | 37 using std::endl; |
39 using ::testing::_; | 38 using ::testing::_; |
40 using ::testing::AtLeast; | 39 using ::testing::AtLeast; |
41 using ::testing::Gt; | 40 using ::testing::Gt; |
42 using ::testing::Invoke; | 41 using ::testing::Invoke; |
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 StopPlayout(); | 1013 StopPlayout(); |
1015 StopRecording(); | 1014 StopRecording(); |
1016 // Verify that the correct number of transmitted impulses are detected. | 1015 // Verify that the correct number of transmitted impulses are detected. |
1017 EXPECT_EQ(latency_audio_stream->num_latency_values(), | 1016 EXPECT_EQ(latency_audio_stream->num_latency_values(), |
1018 static_cast<size_t>( | 1017 static_cast<size_t>( |
1019 kImpulseFrequencyInHz * kMeasureLatencyTimeInSec - 1)); | 1018 kImpulseFrequencyInHz * kMeasureLatencyTimeInSec - 1)); |
1020 latency_audio_stream->PrintResults(); | 1019 latency_audio_stream->PrintResults(); |
1021 } | 1020 } |
1022 | 1021 |
1023 } // namespace webrtc | 1022 } // namespace webrtc |
OLD | NEW |