OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 "webrtc/common_audio/resampler/include/resampler.h" |
11 #include "webrtc/test/gtest.h" | 12 #include "webrtc/test/gtest.h" |
12 | 13 |
13 #include "webrtc/common_audio/resampler/include/resampler.h" | |
14 | |
15 // TODO(andrew): this is a work-in-progress. Many more tests are needed. | 14 // TODO(andrew): this is a work-in-progress. Many more tests are needed. |
16 | 15 |
17 namespace webrtc { | 16 namespace webrtc { |
18 namespace { | 17 namespace { |
19 | 18 |
20 const int kNumChannels[] = {1, 2}; | 19 const int kNumChannels[] = {1, 2}; |
21 const size_t kNumChannelsSize = sizeof(kNumChannels) / sizeof(*kNumChannels); | 20 const size_t kNumChannelsSize = sizeof(kNumChannels) / sizeof(*kNumChannels); |
22 | 21 |
23 // Rates we must support. | 22 // Rates we must support. |
24 const int kMaxRate = 96000; | 23 const int kMaxRate = 96000; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 } else { | 129 } else { |
131 EXPECT_EQ(-1, rs_.Reset(kRates[i], kRates[j], | 130 EXPECT_EQ(-1, rs_.Reset(kRates[i], kRates[j], |
132 kChannels)); | 131 kChannels)); |
133 } | 132 } |
134 } | 133 } |
135 } | 134 } |
136 } | 135 } |
137 | 136 |
138 } // namespace | 137 } // namespace |
139 } // namespace webrtc | 138 } // namespace webrtc |
OLD | NEW |