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 |
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1223 EXPECT_EQ(NetEq::kOK, | 1223 EXPECT_EQ(NetEq::kOK, |
1224 neteq_->GetAudio(kMaxOutputSize, output, &samples_per_channel, | 1224 neteq_->GetAudio(kMaxOutputSize, output, &samples_per_channel, |
1225 &num_channels, &type)); | 1225 &num_channels, &type)); |
1226 EXPECT_EQ(kMaxOutputSize, samples_per_channel); | 1226 EXPECT_EQ(kMaxOutputSize, samples_per_channel); |
1227 EXPECT_EQ(1, num_channels); | 1227 EXPECT_EQ(1, num_channels); |
1228 EXPECT_EQ(kOutputCNG, type); | 1228 EXPECT_EQ(kOutputCNG, type); |
1229 | 1229 |
1230 EXPECT_CALL(mock_decoder, Die()); | 1230 EXPECT_CALL(mock_decoder, Die()); |
1231 } | 1231 } |
1232 | 1232 |
| 1233 // Tests that the return value from last_output_sample_rate_hz() is equal to the |
| 1234 // configured inital sample rate. |
| 1235 TEST_F(NetEqImplTest, InitialLastOutputSampleRate) { |
| 1236 UseNoMocks(); |
| 1237 config_.sample_rate_hz = 48000; |
| 1238 CreateInstance(); |
| 1239 EXPECT_EQ(48000, neteq_->last_output_sample_rate_hz()); |
| 1240 } |
| 1241 |
1233 }// namespace webrtc | 1242 }// namespace webrtc |
OLD | NEW |