Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: webrtc/modules/rtp_rtcp/test/testAPI/test_api_audio.cc

Issue 2717983003: Move fake_audio_device to its own target. (Closed)
Patch Set: Fix more rtp.. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // CNG types should be recognized properly. 63 // CNG types should be recognized properly.
64 EXPECT_EQ(kAudioFrameCN, rtpHeader->frameType); 64 EXPECT_EQ(kAudioFrameCN, rtpHeader->frameType);
65 EXPECT_TRUE(rtpHeader->type.Audio.isCNG); 65 EXPECT_TRUE(rtpHeader->type.Audio.isCNG);
66 } 66 }
67 return 0; 67 return 0;
68 } 68 }
69 }; 69 };
70 70
71 class RTPCallback : public NullRtpFeedback { 71 class RTPCallback : public NullRtpFeedback {
72 public: 72 public:
73 int32_t OnInitializeDecoder(const int8_t payloadType, 73 int32_t OnInitializeDecoder(int8_t payloadType,
74 const char payloadName[RTP_PAYLOAD_NAME_SIZE], 74 const char payloadName[RTP_PAYLOAD_NAME_SIZE],
75 const int frequency, 75 int frequency,
76 const size_t channels, 76 size_t channels,
77 const uint32_t rate) override { 77 uint32_t rate) override {
78 EXPECT_EQ(0u, rate) << "The rate should be zero"; 78 EXPECT_EQ(0u, rate) << "The rate should be zero";
79 return 0; 79 return 0;
80 } 80 }
81 }; 81 };
82 82
83 } // namespace 83 } // namespace
84 84
85 class RtpRtcpAudioTest : public ::testing::Test { 85 class RtpRtcpAudioTest : public ::testing::Test {
86 protected: 86 protected:
87 RtpRtcpAudioTest() 87 RtpRtcpAudioTest()
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 nullptr, nullptr, nullptr)); 278 nullptr, nullptr, nullptr));
279 279
280 EXPECT_EQ(test_ssrc, rtp_receiver2_->SSRC()); 280 EXPECT_EQ(test_ssrc, rtp_receiver2_->SSRC());
281 EXPECT_TRUE(rtp_receiver2_->Timestamp(&timestamp)); 281 EXPECT_TRUE(rtp_receiver2_->Timestamp(&timestamp));
282 EXPECT_EQ(test_timestamp + in_timestamp, timestamp); 282 EXPECT_EQ(test_timestamp + in_timestamp, timestamp);
283 in_timestamp += 10; 283 in_timestamp += 10;
284 } 284 }
285 } 285 }
286 286
287 } // namespace webrtc 287 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698