OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |