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

Side by Side Diff: webrtc/video/end_to_end_tests.cc

Issue 1369263002: Unify Transport and newapi::Transport interfaces. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 #include <algorithm> 10 #include <algorithm>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class EndToEndTest : public test::CallTest { 52 class EndToEndTest : public test::CallTest {
53 public: 53 public:
54 EndToEndTest() {} 54 EndToEndTest() {}
55 55
56 virtual ~EndToEndTest() { 56 virtual ~EndToEndTest() {
57 EXPECT_EQ(nullptr, send_stream_); 57 EXPECT_EQ(nullptr, send_stream_);
58 EXPECT_TRUE(receive_streams_.empty()); 58 EXPECT_TRUE(receive_streams_.empty());
59 } 59 }
60 60
61 protected: 61 protected:
62 class UnusedTransport : public newapi::Transport { 62 class UnusedTransport : public Transport {
63 private: 63 private:
64 bool SendRtp(const uint8_t* packet, size_t length) override { 64 bool SendRtp(const uint8_t* packet, size_t length) override {
65 ADD_FAILURE() << "Unexpected RTP sent."; 65 ADD_FAILURE() << "Unexpected RTP sent.";
66 return false; 66 return false;
67 } 67 }
68 68
69 bool SendRtcp(const uint8_t* packet, size_t length) override { 69 bool SendRtcp(const uint8_t* packet, size_t length) override {
70 ADD_FAILURE() << "Unexpected RTCP sent."; 70 ADD_FAILURE() << "Unexpected RTCP sent.";
71 return false; 71 return false;
72 } 72 }
(...skipping 3049 matching lines...) Expand 10 before | Expand all | Expand 10 after
3122 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) 3122 EXPECT_TRUE(default_receive_config.rtp.rtx.empty())
3123 << "Enabling RTX requires rtpmap: rtx negotiation."; 3123 << "Enabling RTX requires rtpmap: rtx negotiation.";
3124 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) 3124 EXPECT_TRUE(default_receive_config.rtp.extensions.empty())
3125 << "Enabling RTP extensions require negotiation."; 3125 << "Enabling RTP extensions require negotiation.";
3126 3126
3127 VerifyEmptyNackConfig(default_receive_config.rtp.nack); 3127 VerifyEmptyNackConfig(default_receive_config.rtp.nack);
3128 VerifyEmptyFecConfig(default_receive_config.rtp.fec); 3128 VerifyEmptyFecConfig(default_receive_config.rtp.fec);
3129 } 3129 }
3130 3130
3131 } // namespace webrtc 3131 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698