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

Side by Side Diff: webrtc/api/peerconnectioninterface_unittest.cc

Issue 1836083003: Add RTCConfiguration getter and setter methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Comment improvement. 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
« no previous file with comments | « webrtc/api/peerconnectioninterface.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2532 matching lines...) Expand 10 before | Expand all | Expand 10 after
2543 2543
2544 EXPECT_FALSE(media_config.video.enable_cpu_overuse_detection); 2544 EXPECT_FALSE(media_config.video.enable_cpu_overuse_detection);
2545 } 2545 }
2546 2546
2547 // This test verifies that the disable_prerenderer_smoothing flag is 2547 // This test verifies that the disable_prerenderer_smoothing flag is
2548 // propagated from RTCConfiguration to the CreateMediaController call. 2548 // propagated from RTCConfiguration to the CreateMediaController call.
2549 TEST_F(PeerConnectionMediaConfigTest, TestDisablePrerendererSmoothingTrue) { 2549 TEST_F(PeerConnectionMediaConfigTest, TestDisablePrerendererSmoothingTrue) {
2550 PeerConnectionInterface::RTCConfiguration config; 2550 PeerConnectionInterface::RTCConfiguration config;
2551 FakeConstraints constraints; 2551 FakeConstraints constraints;
2552 2552
2553 config.disable_prerenderer_smoothing = true; 2553 config.set_prerenderer_smoothing(false);
2554 const cricket::MediaConfig& media_config = 2554 const cricket::MediaConfig& media_config =
2555 TestCreatePeerConnection(config, &constraints); 2555 TestCreatePeerConnection(config, &constraints);
2556 2556
2557 EXPECT_TRUE(media_config.video.disable_prerenderer_smoothing); 2557 EXPECT_TRUE(media_config.video.disable_prerenderer_smoothing);
2558 } 2558 }
2559 2559
2560 // This test verifies the suspend below min bitrate constraint is 2560 // This test verifies the suspend below min bitrate constraint is
2561 // recognized and passed to the CreateMediaController call. 2561 // recognized and passed to the CreateMediaController call.
2562 TEST_F(PeerConnectionMediaConfigTest, 2562 TEST_F(PeerConnectionMediaConfigTest,
2563 TestSuspendBelowMinBitrateConstraintTrue) { 2563 TestSuspendBelowMinBitrateConstraintTrue) {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2736 FakeConstraints updated_answer_c; 2736 FakeConstraints updated_answer_c;
2737 answer_c.SetMandatoryReceiveAudio(false); 2737 answer_c.SetMandatoryReceiveAudio(false);
2738 answer_c.SetMandatoryReceiveVideo(false); 2738 answer_c.SetMandatoryReceiveVideo(false);
2739 2739
2740 cricket::MediaSessionOptions updated_answer_options; 2740 cricket::MediaSessionOptions updated_answer_options;
2741 EXPECT_TRUE( 2741 EXPECT_TRUE(
2742 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options)); 2742 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options));
2743 EXPECT_TRUE(updated_answer_options.has_audio()); 2743 EXPECT_TRUE(updated_answer_options.has_audio());
2744 EXPECT_TRUE(updated_answer_options.has_video()); 2744 EXPECT_TRUE(updated_answer_options.has_video());
2745 } 2745 }
OLDNEW
« no previous file with comments | « webrtc/api/peerconnectioninterface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698