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

Side by Side Diff: webrtc/p2p/base/faketransportcontroller.h

Issue 1856943002: Allow TransportController to create a QuicTransportChannel (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add unit tests to Transport Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright 2009 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2009 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 kv.second->set_ssl_max_protocol_version(ssl_max_version_); 398 kv.second->set_ssl_max_protocol_version(ssl_max_version_);
399 } 399 }
400 return true; 400 return true;
401 } 401 }
402 rtc::SSLProtocolVersion ssl_max_protocol_version() const { 402 rtc::SSLProtocolVersion ssl_max_protocol_version() const {
403 return ssl_max_version_; 403 return ssl_max_version_;
404 } 404 }
405 405
406 using Transport::local_description; 406 using Transport::local_description;
407 using Transport::remote_description; 407 using Transport::remote_description;
408 using Transport::VerifyCertificateFingerprint;
409 using Transport::NegotiateRole;
408 410
409 protected: 411 protected:
410 TransportChannelImpl* CreateTransportChannel(int component) override { 412 TransportChannelImpl* CreateTransportChannel(int component) override {
411 if (channels_.find(component) != channels_.end()) { 413 if (channels_.find(component) != channels_.end()) {
412 return nullptr; 414 return nullptr;
413 } 415 }
414 FakeTransportChannel* channel = new FakeTransportChannel(name(), component); 416 FakeTransportChannel* channel = new FakeTransportChannel(name(), component);
415 channel->set_ssl_max_protocol_version(ssl_max_version_); 417 channel->set_ssl_max_protocol_version(ssl_max_version_);
416 channel->SetAsync(async_); 418 channel->SetAsync(async_);
417 SetChannelDestination(component, channel); 419 SetChannelDestination(component, channel);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 } 573 }
572 } 574 }
573 575
574 private: 576 private:
575 bool fail_create_channel_; 577 bool fail_create_channel_;
576 }; 578 };
577 579
578 } // namespace cricket 580 } // namespace cricket
579 581
580 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_ 582 #endif // WEBRTC_P2P_BASE_FAKETRANSPORTCONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698