| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 return 0; | 58 return 0; |
| 59 } | 59 } |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 class RTPCallback : public NullRtpFeedback { | 62 class RTPCallback : public NullRtpFeedback { |
| 63 public: | 63 public: |
| 64 int32_t OnInitializeDecoder(const int32_t id, | 64 int32_t OnInitializeDecoder(const int32_t id, |
| 65 const int8_t payloadType, | 65 const int8_t payloadType, |
| 66 const char payloadName[RTP_PAYLOAD_NAME_SIZE], | 66 const char payloadName[RTP_PAYLOAD_NAME_SIZE], |
| 67 const int frequency, | 67 const int frequency, |
| 68 const uint8_t channels, | 68 const size_t channels, |
| 69 const uint32_t rate) override { | 69 const uint32_t rate) override { |
| 70 if (payloadType == 96) { | 70 if (payloadType == 96) { |
| 71 EXPECT_EQ(test_rate, rate) << | 71 EXPECT_EQ(test_rate, rate) << |
| 72 "The rate should be 64K for this payloadType"; | 72 "The rate should be 64K for this payloadType"; |
| 73 } | 73 } |
| 74 return 0; | 74 return 0; |
| 75 } | 75 } |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 class RtpRtcpAudioTest : public ::testing::Test { | 78 class RtpRtcpAudioTest : public ::testing::Test { |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 } | 347 } |
| 348 EXPECT_EQ(0, module1->SendTelephoneEventOutband(32, 9000, 10)); | 348 EXPECT_EQ(0, module1->SendTelephoneEventOutband(32, 9000, 10)); |
| 349 | 349 |
| 350 for (;timeStamp <= 740 * 160; timeStamp += 160) { | 350 for (;timeStamp <= 740 * 160; timeStamp += 160) { |
| 351 EXPECT_EQ(0, module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, | 351 EXPECT_EQ(0, module1->SendOutgoingData(webrtc::kAudioFrameSpeech, 96, |
| 352 timeStamp, -1, test, 4)); | 352 timeStamp, -1, test, 4)); |
| 353 fake_clock.AdvanceTimeMilliseconds(20); | 353 fake_clock.AdvanceTimeMilliseconds(20); |
| 354 module1->Process(); | 354 module1->Process(); |
| 355 } | 355 } |
| 356 } | 356 } |
| OLD | NEW |