Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 11 | #include "pc/peer_connection_wrapper.h" |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 12 | |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 13 | #include <stdint.h> |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 14 | #include <memory> |
| 15 | #include <string> |
| 16 | #include <utility> |
Steve Anton | 36b29d1 | 2017-10-30 09:57:42 -0700 | [diff] [blame] | 17 | #include <vector> |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 18 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 19 | #include "api/set_remote_description_observer_interface.h" |
| 20 | #include "pc/sdp_utils.h" |
| 21 | #include "pc/test/fake_video_track_source.h" |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 22 | #include "rtc_base/checks.h" |
Mirko Bonadei | 2a82310 | 2017-11-13 11:50:33 +0100 | [diff] [blame] | 23 | #include "rtc_base/function_view.h" |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 24 | #include "rtc_base/gunit.h" |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 25 | #include "rtc_base/logging.h" |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 26 | #include "rtc_base/ref_counted_object.h" |
Yves Gerey | 3e70781 | 2018-11-28 16:47:49 +0100 | [diff] [blame] | 27 | #include "test/gtest.h" |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 28 | |
| 29 | namespace webrtc { |
| 30 | |
Steve Anton | 22da89f | 2018-01-25 13:58:07 -0800 | [diff] [blame] | 31 | using RTCOfferAnswerOptions = PeerConnectionInterface::RTCOfferAnswerOptions; |
| 32 | |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 33 | namespace { |
Steve Anton | 6f25b09 | 2017-10-23 09:39:20 -0700 | [diff] [blame] | 34 | const uint32_t kDefaultTimeout = 10000U; |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | PeerConnectionWrapper::PeerConnectionWrapper( |
| 38 | rtc::scoped_refptr<PeerConnectionFactoryInterface> pc_factory, |
| 39 | rtc::scoped_refptr<PeerConnectionInterface> pc, |
| 40 | std::unique_ptr<MockPeerConnectionObserver> observer) |
Mirko Bonadei | 2a82310 | 2017-11-13 11:50:33 +0100 | [diff] [blame] | 41 | : pc_factory_(std::move(pc_factory)), |
| 42 | observer_(std::move(observer)), |
| 43 | pc_(std::move(pc)) { |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 44 | RTC_DCHECK(pc_factory_); |
| 45 | RTC_DCHECK(pc_); |
| 46 | RTC_DCHECK(observer_); |
| 47 | observer_->SetPeerConnectionInterface(pc_.get()); |
| 48 | } |
| 49 | |
| 50 | PeerConnectionWrapper::~PeerConnectionWrapper() = default; |
| 51 | |
| 52 | PeerConnectionFactoryInterface* PeerConnectionWrapper::pc_factory() { |
| 53 | return pc_factory_.get(); |
| 54 | } |
| 55 | |
| 56 | PeerConnectionInterface* PeerConnectionWrapper::pc() { |
| 57 | return pc_.get(); |
| 58 | } |
| 59 | |
| 60 | MockPeerConnectionObserver* PeerConnectionWrapper::observer() { |
| 61 | return observer_.get(); |
| 62 | } |
| 63 | |
| 64 | std::unique_ptr<SessionDescriptionInterface> |
| 65 | PeerConnectionWrapper::CreateOffer() { |
Steve Anton | 22da89f | 2018-01-25 13:58:07 -0800 | [diff] [blame] | 66 | return CreateOffer(RTCOfferAnswerOptions()); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | std::unique_ptr<SessionDescriptionInterface> PeerConnectionWrapper::CreateOffer( |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 70 | const PeerConnectionInterface::RTCOfferAnswerOptions& options, |
| 71 | std::string* error_out) { |
| 72 | return CreateSdp( |
| 73 | [this, options](CreateSessionDescriptionObserver* observer) { |
| 74 | pc()->CreateOffer(observer, options); |
| 75 | }, |
| 76 | error_out); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 77 | } |
| 78 | |
| 79 | std::unique_ptr<SessionDescriptionInterface> |
| 80 | PeerConnectionWrapper::CreateOfferAndSetAsLocal() { |
Steve Anton | 22da89f | 2018-01-25 13:58:07 -0800 | [diff] [blame] | 81 | return CreateOfferAndSetAsLocal(RTCOfferAnswerOptions()); |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 82 | } |
| 83 | |
| 84 | std::unique_ptr<SessionDescriptionInterface> |
| 85 | PeerConnectionWrapper::CreateOfferAndSetAsLocal( |
| 86 | const PeerConnectionInterface::RTCOfferAnswerOptions& options) { |
| 87 | auto offer = CreateOffer(options); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 88 | if (!offer) { |
| 89 | return nullptr; |
| 90 | } |
| 91 | EXPECT_TRUE(SetLocalDescription(CloneSessionDescription(offer.get()))); |
| 92 | return offer; |
| 93 | } |
| 94 | |
| 95 | std::unique_ptr<SessionDescriptionInterface> |
| 96 | PeerConnectionWrapper::CreateAnswer() { |
Steve Anton | 22da89f | 2018-01-25 13:58:07 -0800 | [diff] [blame] | 97 | return CreateAnswer(RTCOfferAnswerOptions()); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | std::unique_ptr<SessionDescriptionInterface> |
| 101 | PeerConnectionWrapper::CreateAnswer( |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 102 | const PeerConnectionInterface::RTCOfferAnswerOptions& options, |
| 103 | std::string* error_out) { |
| 104 | return CreateSdp( |
| 105 | [this, options](CreateSessionDescriptionObserver* observer) { |
| 106 | pc()->CreateAnswer(observer, options); |
| 107 | }, |
| 108 | error_out); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 109 | } |
| 110 | |
| 111 | std::unique_ptr<SessionDescriptionInterface> |
| 112 | PeerConnectionWrapper::CreateAnswerAndSetAsLocal() { |
Steve Anton | 22da89f | 2018-01-25 13:58:07 -0800 | [diff] [blame] | 113 | return CreateAnswerAndSetAsLocal(RTCOfferAnswerOptions()); |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 114 | } |
| 115 | |
| 116 | std::unique_ptr<SessionDescriptionInterface> |
| 117 | PeerConnectionWrapper::CreateAnswerAndSetAsLocal( |
| 118 | const PeerConnectionInterface::RTCOfferAnswerOptions& options) { |
| 119 | auto answer = CreateAnswer(options); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 120 | if (!answer) { |
| 121 | return nullptr; |
| 122 | } |
| 123 | EXPECT_TRUE(SetLocalDescription(CloneSessionDescription(answer.get()))); |
| 124 | return answer; |
| 125 | } |
| 126 | |
| 127 | std::unique_ptr<SessionDescriptionInterface> PeerConnectionWrapper::CreateSdp( |
Mirko Bonadei | 2a82310 | 2017-11-13 11:50:33 +0100 | [diff] [blame] | 128 | rtc::FunctionView<void(CreateSessionDescriptionObserver*)> fn, |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 129 | std::string* error_out) { |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 130 | rtc::scoped_refptr<MockCreateSessionDescriptionObserver> observer( |
| 131 | new rtc::RefCountedObject<MockCreateSessionDescriptionObserver>()); |
| 132 | fn(observer); |
Steve Anton | 6f25b09 | 2017-10-23 09:39:20 -0700 | [diff] [blame] | 133 | EXPECT_EQ_WAIT(true, observer->called(), kDefaultTimeout); |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 134 | if (error_out && !observer->result()) { |
| 135 | *error_out = observer->error(); |
| 136 | } |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 137 | return observer->MoveDescription(); |
| 138 | } |
| 139 | |
| 140 | bool PeerConnectionWrapper::SetLocalDescription( |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 141 | std::unique_ptr<SessionDescriptionInterface> desc, |
| 142 | std::string* error_out) { |
| 143 | return SetSdp( |
| 144 | [this, &desc](SetSessionDescriptionObserver* observer) { |
| 145 | pc()->SetLocalDescription(observer, desc.release()); |
| 146 | }, |
| 147 | error_out); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 148 | } |
| 149 | |
| 150 | bool PeerConnectionWrapper::SetRemoteDescription( |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 151 | std::unique_ptr<SessionDescriptionInterface> desc, |
| 152 | std::string* error_out) { |
| 153 | return SetSdp( |
| 154 | [this, &desc](SetSessionDescriptionObserver* observer) { |
| 155 | pc()->SetRemoteDescription(observer, desc.release()); |
| 156 | }, |
| 157 | error_out); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 158 | } |
| 159 | |
Henrik Boström | 3163867 | 2017-11-23 17:48:32 +0100 | [diff] [blame] | 160 | bool PeerConnectionWrapper::SetRemoteDescription( |
| 161 | std::unique_ptr<SessionDescriptionInterface> desc, |
| 162 | RTCError* error_out) { |
| 163 | rtc::scoped_refptr<MockSetRemoteDescriptionObserver> observer = |
| 164 | new MockSetRemoteDescriptionObserver(); |
| 165 | pc()->SetRemoteDescription(std::move(desc), observer); |
| 166 | EXPECT_EQ_WAIT(true, observer->called(), kDefaultTimeout); |
| 167 | bool ok = observer->error().ok(); |
| 168 | if (error_out) |
| 169 | *error_out = std::move(observer->error()); |
| 170 | return ok; |
| 171 | } |
| 172 | |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 173 | bool PeerConnectionWrapper::SetSdp( |
Mirko Bonadei | 2a82310 | 2017-11-13 11:50:33 +0100 | [diff] [blame] | 174 | rtc::FunctionView<void(SetSessionDescriptionObserver*)> fn, |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 175 | std::string* error_out) { |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 176 | rtc::scoped_refptr<MockSetSessionDescriptionObserver> observer( |
| 177 | new rtc::RefCountedObject<MockSetSessionDescriptionObserver>()); |
| 178 | fn(observer); |
Steve Anton | 6f25b09 | 2017-10-23 09:39:20 -0700 | [diff] [blame] | 179 | EXPECT_EQ_WAIT(true, observer->called(), kDefaultTimeout); |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 180 | if (error_out && !observer->result()) { |
| 181 | *error_out = observer->error(); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 182 | } |
| 183 | return observer->result(); |
| 184 | } |
| 185 | |
Steve Anton | dcc3c02 | 2017-12-22 16:02:54 -0800 | [diff] [blame] | 186 | bool PeerConnectionWrapper::ExchangeOfferAnswerWith( |
| 187 | PeerConnectionWrapper* answerer) { |
Steve Anton | 22da89f | 2018-01-25 13:58:07 -0800 | [diff] [blame] | 188 | return ExchangeOfferAnswerWith(answerer, RTCOfferAnswerOptions(), |
| 189 | RTCOfferAnswerOptions()); |
| 190 | } |
| 191 | |
| 192 | bool PeerConnectionWrapper::ExchangeOfferAnswerWith( |
| 193 | PeerConnectionWrapper* answerer, |
| 194 | const PeerConnectionInterface::RTCOfferAnswerOptions& offer_options, |
| 195 | const PeerConnectionInterface::RTCOfferAnswerOptions& answer_options) { |
Steve Anton | dcc3c02 | 2017-12-22 16:02:54 -0800 | [diff] [blame] | 196 | RTC_DCHECK(answerer); |
| 197 | if (answerer == this) { |
| 198 | RTC_LOG(LS_ERROR) << "Cannot exchange offer/answer with ourself!"; |
| 199 | return false; |
| 200 | } |
Steve Anton | 22da89f | 2018-01-25 13:58:07 -0800 | [diff] [blame] | 201 | auto offer = CreateOffer(offer_options); |
Steve Anton | dcc3c02 | 2017-12-22 16:02:54 -0800 | [diff] [blame] | 202 | EXPECT_TRUE(offer); |
| 203 | if (!offer) { |
| 204 | return false; |
| 205 | } |
| 206 | bool set_local_offer = |
| 207 | SetLocalDescription(CloneSessionDescription(offer.get())); |
| 208 | EXPECT_TRUE(set_local_offer); |
| 209 | if (!set_local_offer) { |
| 210 | return false; |
| 211 | } |
| 212 | bool set_remote_offer = answerer->SetRemoteDescription(std::move(offer)); |
| 213 | EXPECT_TRUE(set_remote_offer); |
| 214 | if (!set_remote_offer) { |
| 215 | return false; |
| 216 | } |
Steve Anton | 22da89f | 2018-01-25 13:58:07 -0800 | [diff] [blame] | 217 | auto answer = answerer->CreateAnswer(answer_options); |
Steve Anton | dcc3c02 | 2017-12-22 16:02:54 -0800 | [diff] [blame] | 218 | EXPECT_TRUE(answer); |
| 219 | if (!answer) { |
| 220 | return false; |
| 221 | } |
| 222 | bool set_local_answer = |
| 223 | answerer->SetLocalDescription(CloneSessionDescription(answer.get())); |
| 224 | EXPECT_TRUE(set_local_answer); |
| 225 | if (!set_local_answer) { |
| 226 | return false; |
| 227 | } |
| 228 | bool set_remote_answer = SetRemoteDescription(std::move(answer)); |
| 229 | EXPECT_TRUE(set_remote_answer); |
| 230 | return set_remote_answer; |
| 231 | } |
| 232 | |
Steve Anton | 9158ef6 | 2017-11-27 13:01:52 -0800 | [diff] [blame] | 233 | rtc::scoped_refptr<RtpTransceiverInterface> |
| 234 | PeerConnectionWrapper::AddTransceiver(cricket::MediaType media_type) { |
| 235 | RTCErrorOr<rtc::scoped_refptr<RtpTransceiverInterface>> result = |
| 236 | pc()->AddTransceiver(media_type); |
| 237 | EXPECT_EQ(RTCErrorType::NONE, result.error().type()); |
| 238 | return result.MoveValue(); |
| 239 | } |
| 240 | |
| 241 | rtc::scoped_refptr<RtpTransceiverInterface> |
| 242 | PeerConnectionWrapper::AddTransceiver(cricket::MediaType media_type, |
| 243 | const RtpTransceiverInit& init) { |
| 244 | RTCErrorOr<rtc::scoped_refptr<RtpTransceiverInterface>> result = |
| 245 | pc()->AddTransceiver(media_type, init); |
| 246 | EXPECT_EQ(RTCErrorType::NONE, result.error().type()); |
| 247 | return result.MoveValue(); |
| 248 | } |
| 249 | |
| 250 | rtc::scoped_refptr<RtpTransceiverInterface> |
| 251 | PeerConnectionWrapper::AddTransceiver( |
| 252 | rtc::scoped_refptr<MediaStreamTrackInterface> track) { |
| 253 | RTCErrorOr<rtc::scoped_refptr<RtpTransceiverInterface>> result = |
| 254 | pc()->AddTransceiver(track); |
| 255 | EXPECT_EQ(RTCErrorType::NONE, result.error().type()); |
| 256 | return result.MoveValue(); |
| 257 | } |
| 258 | |
| 259 | rtc::scoped_refptr<RtpTransceiverInterface> |
| 260 | PeerConnectionWrapper::AddTransceiver( |
| 261 | rtc::scoped_refptr<MediaStreamTrackInterface> track, |
| 262 | const RtpTransceiverInit& init) { |
| 263 | RTCErrorOr<rtc::scoped_refptr<RtpTransceiverInterface>> result = |
| 264 | pc()->AddTransceiver(track, init); |
| 265 | EXPECT_EQ(RTCErrorType::NONE, result.error().type()); |
| 266 | return result.MoveValue(); |
| 267 | } |
| 268 | |
| 269 | rtc::scoped_refptr<AudioTrackInterface> PeerConnectionWrapper::CreateAudioTrack( |
| 270 | const std::string& label) { |
| 271 | return pc_factory()->CreateAudioTrack(label, nullptr); |
| 272 | } |
| 273 | |
| 274 | rtc::scoped_refptr<VideoTrackInterface> PeerConnectionWrapper::CreateVideoTrack( |
| 275 | const std::string& label) { |
Niels Möller | e8ae5df | 2018-05-29 09:13:57 +0200 | [diff] [blame] | 276 | return pc_factory()->CreateVideoTrack(label, FakeVideoTrackSource::Create()); |
Steve Anton | 9158ef6 | 2017-11-27 13:01:52 -0800 | [diff] [blame] | 277 | } |
| 278 | |
Steve Anton | 2d6c76a | 2018-01-05 17:10:52 -0800 | [diff] [blame] | 279 | rtc::scoped_refptr<RtpSenderInterface> PeerConnectionWrapper::AddTrack( |
| 280 | rtc::scoped_refptr<MediaStreamTrackInterface> track, |
Seth Hampson | 845e878 | 2018-03-02 11:34:10 -0800 | [diff] [blame] | 281 | const std::vector<std::string>& stream_ids) { |
Steve Anton | 2d6c76a | 2018-01-05 17:10:52 -0800 | [diff] [blame] | 282 | RTCErrorOr<rtc::scoped_refptr<RtpSenderInterface>> result = |
Seth Hampson | 845e878 | 2018-03-02 11:34:10 -0800 | [diff] [blame] | 283 | pc()->AddTrack(track, stream_ids); |
Steve Anton | 2d6c76a | 2018-01-05 17:10:52 -0800 | [diff] [blame] | 284 | EXPECT_EQ(RTCErrorType::NONE, result.error().type()); |
| 285 | return result.MoveValue(); |
| 286 | } |
| 287 | |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 288 | rtc::scoped_refptr<RtpSenderInterface> PeerConnectionWrapper::AddAudioTrack( |
| 289 | const std::string& track_label, |
Seth Hampson | 845e878 | 2018-03-02 11:34:10 -0800 | [diff] [blame] | 290 | const std::vector<std::string>& stream_ids) { |
| 291 | return AddTrack(CreateAudioTrack(track_label), stream_ids); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 292 | } |
| 293 | |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 294 | rtc::scoped_refptr<RtpSenderInterface> PeerConnectionWrapper::AddVideoTrack( |
| 295 | const std::string& track_label, |
Seth Hampson | 845e878 | 2018-03-02 11:34:10 -0800 | [diff] [blame] | 296 | const std::vector<std::string>& stream_ids) { |
| 297 | return AddTrack(CreateVideoTrack(track_label), stream_ids); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 298 | } |
| 299 | |
Steve Anton | fa2260d | 2017-12-28 16:38:23 -0800 | [diff] [blame] | 300 | rtc::scoped_refptr<DataChannelInterface> |
| 301 | PeerConnectionWrapper::CreateDataChannel(const std::string& label) { |
| 302 | return pc()->CreateDataChannel(label, nullptr); |
| 303 | } |
| 304 | |
Steve Anton | 8d3444d | 2017-10-20 15:30:51 -0700 | [diff] [blame] | 305 | PeerConnectionInterface::SignalingState |
| 306 | PeerConnectionWrapper::signaling_state() { |
| 307 | return pc()->signaling_state(); |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 308 | } |
| 309 | |
Steve Anton | f1c6db1 | 2017-10-13 11:13:35 -0700 | [diff] [blame] | 310 | bool PeerConnectionWrapper::IsIceGatheringDone() { |
Steve Anton | 6f25b09 | 2017-10-23 09:39:20 -0700 | [diff] [blame] | 311 | return observer()->ice_gathering_complete_; |
| 312 | } |
| 313 | |
| 314 | bool PeerConnectionWrapper::IsIceConnected() { |
| 315 | return observer()->ice_connected_; |
| 316 | } |
| 317 | |
| 318 | rtc::scoped_refptr<const webrtc::RTCStatsReport> |
| 319 | PeerConnectionWrapper::GetStats() { |
| 320 | rtc::scoped_refptr<webrtc::MockRTCStatsCollectorCallback> callback( |
| 321 | new rtc::RefCountedObject<webrtc::MockRTCStatsCollectorCallback>()); |
| 322 | pc()->GetStats(callback); |
| 323 | EXPECT_TRUE_WAIT(callback->called(), kDefaultTimeout); |
| 324 | return callback->report(); |
Steve Anton | f1c6db1 | 2017-10-13 11:13:35 -0700 | [diff] [blame] | 325 | } |
| 326 | |
Steve Anton | 94286cb | 2017-09-26 16:20:19 -0700 | [diff] [blame] | 327 | } // namespace webrtc |