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

Side by Side Diff: webrtc/media/base/rtpdataengine_unittest.cc

Issue 2539813003: Set the preferred DSCP value for Rtp data channel to be DSCP_AF41. (Closed)
Patch Set: Remove the default parameter. Created 4 years 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
« no previous file with comments | « webrtc/media/base/rtpdataengine.cc ('k') | webrtc/media/sctp/sctpdataengine.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cricket::RtpDataEngine* CreateEngine() { 63 cricket::RtpDataEngine* CreateEngine() {
64 cricket::RtpDataEngine* dme = new cricket::RtpDataEngine(); 64 cricket::RtpDataEngine* dme = new cricket::RtpDataEngine();
65 return dme; 65 return dme;
66 } 66 }
67 67
68 cricket::RtpDataMediaChannel* CreateChannel() { 68 cricket::RtpDataMediaChannel* CreateChannel() {
69 return CreateChannel(dme_.get()); 69 return CreateChannel(dme_.get());
70 } 70 }
71 71
72 cricket::RtpDataMediaChannel* CreateChannel(cricket::RtpDataEngine* dme) { 72 cricket::RtpDataMediaChannel* CreateChannel(cricket::RtpDataEngine* dme) {
73 cricket::MediaConfig config;
73 cricket::RtpDataMediaChannel* channel = 74 cricket::RtpDataMediaChannel* channel =
74 static_cast<cricket::RtpDataMediaChannel*>(dme->CreateChannel( 75 static_cast<cricket::RtpDataMediaChannel*>(
75 cricket::DCT_RTP)); 76 dme->CreateChannel(cricket::DCT_RTP, config));
76 channel->SetInterface(iface_.get()); 77 channel->SetInterface(iface_.get());
77 channel->SignalDataReceived.connect( 78 channel->SignalDataReceived.connect(
78 receiver_.get(), &FakeDataReceiver::OnDataReceived); 79 receiver_.get(), &FakeDataReceiver::OnDataReceived);
79 return channel; 80 return channel;
80 } 81 }
81 82
82 FakeDataReceiver* receiver() { 83 FakeDataReceiver* receiver() {
83 return receiver_.get(); 84 return receiver_.get();
84 } 85 }
85 86
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 0x80, 0x65, 0x00, 0x02 369 0x80, 0x65, 0x00, 0x02
369 }; 370 };
370 rtc::CopyOnWriteBuffer packet(data, sizeof(data)); 371 rtc::CopyOnWriteBuffer packet(data, sizeof(data));
371 372
372 std::unique_ptr<cricket::RtpDataMediaChannel> dmc(CreateChannel()); 373 std::unique_ptr<cricket::RtpDataMediaChannel> dmc(CreateChannel());
373 374
374 // Too short 375 // Too short
375 dmc->OnPacketReceived(&packet, rtc::PacketTime()); 376 dmc->OnPacketReceived(&packet, rtc::PacketTime());
376 EXPECT_FALSE(HasReceivedData()); 377 EXPECT_FALSE(HasReceivedData());
377 } 378 }
OLDNEW
« no previous file with comments | « webrtc/media/base/rtpdataengine.cc ('k') | webrtc/media/sctp/sctpdataengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698