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

Side by Side Diff: webrtc/api/peerconnectioninterface.h

Issue 2738353003: Rewrite PeerConnection integration tests using better testing practices. (Closed)
Patch Set: Fixing issues caught by trybots. Created 3 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 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 // The CreateSessionDescriptionObserver callback will be called when done. 641 // The CreateSessionDescriptionObserver callback will be called when done.
642 virtual void CreateAnswer(CreateSessionDescriptionObserver* observer, 642 virtual void CreateAnswer(CreateSessionDescriptionObserver* observer,
643 const RTCOfferAnswerOptions& options) {} 643 const RTCOfferAnswerOptions& options) {}
644 // Deprecated - use version above. 644 // Deprecated - use version above.
645 // TODO(hta): Remove and remove default implementations when all callers 645 // TODO(hta): Remove and remove default implementations when all callers
646 // are updated. 646 // are updated.
647 virtual void CreateAnswer(CreateSessionDescriptionObserver* observer, 647 virtual void CreateAnswer(CreateSessionDescriptionObserver* observer,
648 const MediaConstraintsInterface* constraints) {} 648 const MediaConstraintsInterface* constraints) {}
649 649
650 // Sets the local session description. 650 // Sets the local session description.
651 // JsepInterface takes the ownership of |desc| even if it fails. 651 // The PeerConnection takes the ownership of |desc| even if it fails.
652 // The |observer| callback will be called when done. 652 // The |observer| callback will be called when done.
653 // TODO(deadbeef): Change |desc| to be a unique_ptr, to make it clear
654 // that this method always takes ownership of it.
653 virtual void SetLocalDescription(SetSessionDescriptionObserver* observer, 655 virtual void SetLocalDescription(SetSessionDescriptionObserver* observer,
654 SessionDescriptionInterface* desc) = 0; 656 SessionDescriptionInterface* desc) = 0;
655 // Sets the remote session description. 657 // Sets the remote session description.
656 // JsepInterface takes the ownership of |desc| even if it fails. 658 // The PeerConnection takes the ownership of |desc| even if it fails.
657 // The |observer| callback will be called when done. 659 // The |observer| callback will be called when done.
658 virtual void SetRemoteDescription(SetSessionDescriptionObserver* observer, 660 virtual void SetRemoteDescription(SetSessionDescriptionObserver* observer,
659 SessionDescriptionInterface* desc) = 0; 661 SessionDescriptionInterface* desc) = 0;
660 // Deprecated; Replaced by SetConfiguration. 662 // Deprecated; Replaced by SetConfiguration.
661 // TODO(deadbeef): Remove once Chrome is moved over to SetConfiguration. 663 // TODO(deadbeef): Remove once Chrome is moved over to SetConfiguration.
662 virtual bool UpdateIce(const IceServers& configuration, 664 virtual bool UpdateIce(const IceServers& configuration,
663 const MediaConstraintsInterface* constraints) { 665 const MediaConstraintsInterface* constraints) {
664 return false; 666 return false;
665 } 667 }
666 virtual bool UpdateIce(const IceServers& configuration) { return false; } 668 virtual bool UpdateIce(const IceServers& configuration) { return false; }
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 cricket::WebRtcVideoEncoderFactory* encoder_factory, 1098 cricket::WebRtcVideoEncoderFactory* encoder_factory,
1097 cricket::WebRtcVideoDecoderFactory* decoder_factory) { 1099 cricket::WebRtcVideoDecoderFactory* decoder_factory) {
1098 return CreatePeerConnectionFactory( 1100 return CreatePeerConnectionFactory(
1099 worker_and_network_thread, worker_and_network_thread, signaling_thread, 1101 worker_and_network_thread, worker_and_network_thread, signaling_thread,
1100 default_adm, encoder_factory, decoder_factory); 1102 default_adm, encoder_factory, decoder_factory);
1101 } 1103 }
1102 1104
1103 } // namespace webrtc 1105 } // namespace webrtc
1104 1106
1105 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_ 1107 #endif // WEBRTC_API_PEERCONNECTIONINTERFACE_H_
OLDNEW
« no previous file with comments | « tools-webrtc/valgrind/gtest_exclude/peerconnection_unittests.gtest-memcheck.txt ('k') | webrtc/media/base/fakevideorenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698