| 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 |
| 11 #include <algorithm> | 11 #include <algorithm> |
| 12 #include <limits> | 12 #include <limits> |
| 13 #include <list> | 13 #include <list> |
| 14 #include <numeric> | 14 #include <numeric> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "webrtc/base/arraysize.h" | 20 #include "webrtc/base/arraysize.h" |
| 21 #include "webrtc/base/criticalsection.h" | 21 #include "webrtc/base/criticalsection.h" |
| 22 #include "webrtc/base/format_macros.h" | 22 #include "webrtc/base/format_macros.h" |
| 23 #include "webrtc/base/logging.h" | 23 #include "webrtc/base/logging.h" |
| 24 #include "webrtc/base/scoped_ptr.h" | 24 #include "webrtc/base/scoped_ptr.h" |
| 25 #include "webrtc/base/scoped_ref_ptr.h" | 25 #include "webrtc/base/scoped_ref_ptr.h" |
| 26 #include "webrtc/modules/audio_device/audio_device_impl.h" | 26 #include "webrtc/modules/audio_device/audio_device_impl.h" |
| 27 #include "webrtc/modules/audio_device/include/audio_device.h" | 27 #include "webrtc/modules/audio_device/include/audio_device.h" |
| 28 #include "webrtc/modules/audio_device/ios/audio_device_ios.h" | 28 #include "webrtc/modules/audio_device/ios/audio_device_ios.h" |
| 29 #include "webrtc/system_wrappers/interface/clock.h" | 29 #include "webrtc/system_wrappers/include/clock.h" |
| 30 #include "webrtc/system_wrappers/interface/event_wrapper.h" | 30 #include "webrtc/system_wrappers/include/event_wrapper.h" |
| 31 #include "webrtc/system_wrappers/interface/sleep.h" | 31 #include "webrtc/system_wrappers/include/sleep.h" |
| 32 #include "webrtc/test/testsupport/fileutils.h" | 32 #include "webrtc/test/testsupport/fileutils.h" |
| 33 | 33 |
| 34 using std::cout; | 34 using std::cout; |
| 35 using std::endl; | 35 using std::endl; |
| 36 using ::testing::_; | 36 using ::testing::_; |
| 37 using ::testing::AtLeast; | 37 using ::testing::AtLeast; |
| 38 using ::testing::Gt; | 38 using ::testing::Gt; |
| 39 using ::testing::Invoke; | 39 using ::testing::Invoke; |
| 40 using ::testing::NiceMock; | 40 using ::testing::NiceMock; |
| 41 using ::testing::NotNull; | 41 using ::testing::NotNull; |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 StopPlayout(); | 778 StopPlayout(); |
| 779 StopRecording(); | 779 StopRecording(); |
| 780 // Verify that the correct number of transmitted impulses are detected. | 780 // Verify that the correct number of transmitted impulses are detected. |
| 781 EXPECT_EQ(latency_audio_stream->num_latency_values(), | 781 EXPECT_EQ(latency_audio_stream->num_latency_values(), |
| 782 static_cast<size_t>( | 782 static_cast<size_t>( |
| 783 kImpulseFrequencyInHz * kMeasureLatencyTimeInSec - 1)); | 783 kImpulseFrequencyInHz * kMeasureLatencyTimeInSec - 1)); |
| 784 latency_audio_stream->PrintResults(); | 784 latency_audio_stream->PrintResults(); |
| 785 } | 785 } |
| 786 | 786 |
| 787 } // namespace webrtc | 787 } // namespace webrtc |
| OLD | NEW |