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