OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 return it->second.second; | 124 return it->second.second; |
125 } | 125 } |
126 return -1; | 126 return -1; |
127 } | 127 } |
128 | 128 |
129 void ConferenceTransport::StorePacket(Packet::Type type, | 129 void ConferenceTransport::StorePacket(Packet::Type type, |
130 const void* data, | 130 const void* data, |
131 size_t len) { | 131 size_t len) { |
132 { | 132 { |
133 rtc::CritScope lock(&pq_crit_); | 133 rtc::CritScope lock(&pq_crit_); |
134 packet_queue_.push_back(Packet(type, data, len, rtc::Time())); | 134 packet_queue_.push_back(Packet(type, data, len, rtc::TimeMillis())); |
135 } | 135 } |
136 packet_event_->Set(); | 136 packet_event_->Set(); |
137 } | 137 } |
138 | 138 |
139 // This simulates the flow of RTP and RTCP packets. Complications like that | 139 // This simulates the flow of RTP and RTCP packets. Complications like that |
140 // a packet is first sent to the reflector, and then forwarded to the receiver | 140 // a packet is first sent to the reflector, and then forwarded to the receiver |
141 // are simplified, in this particular case, to a direct link between the sender | 141 // are simplified, in this particular case, to a direct link between the sender |
142 // and the receiver. | 142 // and the receiver. |
143 void ConferenceTransport::SendPacket(const Packet& packet) { | 143 void ConferenceTransport::SendPacket(const Packet& packet) { |
144 int destination = -1; | 144 int destination = -1; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 bool ConferenceTransport::GetReceiverStatistics(unsigned int id, | 277 bool ConferenceTransport::GetReceiverStatistics(unsigned int id, |
278 webrtc::CallStatistics* stats) { | 278 webrtc::CallStatistics* stats) { |
279 int dst = GetReceiverChannelForSsrc(id); | 279 int dst = GetReceiverChannelForSsrc(id); |
280 if (dst == -1) { | 280 if (dst == -1) { |
281 return false; | 281 return false; |
282 } | 282 } |
283 EXPECT_EQ(0, local_rtp_rtcp_->GetRTCPStatistics(dst, *stats)); | 283 EXPECT_EQ(0, local_rtp_rtcp_->GetRTCPStatistics(dst, *stats)); |
284 return true; | 284 return true; |
285 } | 285 } |
286 } // namespace voetest | 286 } // namespace voetest |
OLD | NEW |