| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 <math.h> | 11 #include <math.h> |
| 12 | 12 |
| 13 #include "webrtc/base/format_macros.h" | |
| 14 #include "webrtc/common_audio/resampler/include/push_resampler.h" | 13 #include "webrtc/common_audio/resampler/include/push_resampler.h" |
| 15 #include "webrtc/modules/include/module_common_types.h" | 14 #include "webrtc/modules/include/module_common_types.h" |
| 15 #include "webrtc/rtc_base/arraysize.h" |
| 16 #include "webrtc/rtc_base/format_macros.h" |
| 16 #include "webrtc/test/gtest.h" | 17 #include "webrtc/test/gtest.h" |
| 17 #include "webrtc/voice_engine/utility.h" | 18 #include "webrtc/voice_engine/utility.h" |
| 18 #include "webrtc/voice_engine/voice_engine_defines.h" | 19 #include "webrtc/voice_engine/voice_engine_defines.h" |
| 19 #include "webrtc/base/arraysize.h" | |
| 20 | 20 |
| 21 namespace webrtc { | 21 namespace webrtc { |
| 22 namespace voe { | 22 namespace voe { |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 class UtilityTest : public ::testing::Test { | 25 class UtilityTest : public ::testing::Test { |
| 26 protected: | 26 protected: |
| 27 UtilityTest() { | 27 UtilityTest() { |
| 28 src_frame_.sample_rate_hz_ = 16000; | 28 src_frame_.sample_rate_hz_ = 16000; |
| 29 src_frame_.samples_per_channel_ = src_frame_.sample_rate_hz_ / 100; | 29 src_frame_.samples_per_channel_ = src_frame_.sample_rate_hz_ / 100; |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 kDstChannels[dst_channel], kSampleRates[dst_rate]); | 267 kDstChannels[dst_channel], kSampleRates[dst_rate]); |
| 268 } | 268 } |
| 269 } | 269 } |
| 270 } | 270 } |
| 271 } | 271 } |
| 272 } | 272 } |
| 273 | 273 |
| 274 } // namespace | 274 } // namespace |
| 275 } // namespace voe | 275 } // namespace voe |
| 276 } // namespace webrtc | 276 } // namespace webrtc |
| OLD | NEW |