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

Side by Side Diff: webrtc/test/direct_transport.cc

Issue 1376673004: Add a PacketOptions struct to webrtc::Transport. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comment added 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
« no previous file with comments | « webrtc/test/direct_transport.h ('k') | webrtc/test/layer_filtering_transport.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) 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 "webrtc/test/direct_transport.h" 10 #include "webrtc/test/direct_transport.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 packet_event_->Set(); 52 packet_event_->Set();
53 EXPECT_TRUE(thread_->Stop()); 53 EXPECT_TRUE(thread_->Stop());
54 } 54 }
55 55
56 void DirectTransport::SetReceiver(PacketReceiver* receiver) { 56 void DirectTransport::SetReceiver(PacketReceiver* receiver) {
57 fake_network_.SetReceiver(receiver); 57 fake_network_.SetReceiver(receiver);
58 } 58 }
59 59
60 bool DirectTransport::SendRtp(const uint8_t* data, size_t length) { 60 bool DirectTransport::SendRtp(const uint8_t* data,
61 size_t length,
62 const PacketOptions& options) {
61 fake_network_.SendPacket(data, length); 63 fake_network_.SendPacket(data, length);
62 packet_event_->Set(); 64 packet_event_->Set();
63 return true; 65 return true;
64 } 66 }
65 67
66 bool DirectTransport::SendRtcp(const uint8_t* data, size_t length) { 68 bool DirectTransport::SendRtcp(const uint8_t* data, size_t length) {
67 fake_network_.SendPacket(data, length); 69 fake_network_.SendPacket(data, length);
68 packet_event_->Set(); 70 packet_event_->Set();
69 return true; 71 return true;
70 } 72 }
(...skipping 14 matching lines...) Expand all
85 case kEventError: 87 case kEventError:
86 // TODO(pbos): Log a warning here? 88 // TODO(pbos): Log a warning here?
87 return true; 89 return true;
88 } 90 }
89 } 91 }
90 rtc::CritScope crit(&lock_); 92 rtc::CritScope crit(&lock_);
91 return shutting_down_ ? false : true; 93 return shutting_down_ ? false : true;
92 } 94 }
93 } // namespace test 95 } // namespace test
94 } // namespace webrtc 96 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/test/direct_transport.h ('k') | webrtc/test/layer_filtering_transport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698