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

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

Issue 1818033002: Embed a cricket::MediaConfig in RTCConfiguration. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 2479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 2490
2491 EXPECT_FALSE(media_config.video.enable_cpu_overuse_detection); 2491 EXPECT_FALSE(media_config.video.enable_cpu_overuse_detection);
2492 } 2492 }
2493 2493
2494 // This test verifies that the disable_prerenderer_smoothing flag is 2494 // This test verifies that the disable_prerenderer_smoothing flag is
2495 // propagated from RTCConfiguration to the CreateMediaController call. 2495 // propagated from RTCConfiguration to the CreateMediaController call.
2496 TEST_F(PeerConnectionMediaConfigTest, TestDisablePrerendererSmoothingTrue) { 2496 TEST_F(PeerConnectionMediaConfigTest, TestDisablePrerendererSmoothingTrue) {
2497 PeerConnectionInterface::RTCConfiguration config; 2497 PeerConnectionInterface::RTCConfiguration config;
2498 FakeConstraints constraints; 2498 FakeConstraints constraints;
2499 2499
2500 config.disable_prerenderer_smoothing = true; 2500 config.media_config.video.disable_prerenderer_smoothing = true;
2501 const cricket::MediaConfig& media_config = 2501 const cricket::MediaConfig& media_config =
2502 TestCreatePeerConnection(config, &constraints); 2502 TestCreatePeerConnection(config, &constraints);
2503 2503
2504 EXPECT_TRUE(media_config.video.disable_prerenderer_smoothing); 2504 EXPECT_TRUE(media_config.video.disable_prerenderer_smoothing);
2505 } 2505 }
2506 2506
2507 // This test verifies the suspend below min bitrate constraint is 2507 // This test verifies the suspend below min bitrate constraint is
2508 // recognized and passed to the CreateMediaController call. 2508 // recognized and passed to the CreateMediaController call.
2509 TEST_F(PeerConnectionMediaConfigTest, 2509 TEST_F(PeerConnectionMediaConfigTest,
2510 TestSuspendBelowMinBitrateConstraintTrue) { 2510 TestSuspendBelowMinBitrateConstraintTrue) {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
2683 FakeConstraints updated_answer_c; 2683 FakeConstraints updated_answer_c;
2684 answer_c.SetMandatoryReceiveAudio(false); 2684 answer_c.SetMandatoryReceiveAudio(false);
2685 answer_c.SetMandatoryReceiveVideo(false); 2685 answer_c.SetMandatoryReceiveVideo(false);
2686 2686
2687 cricket::MediaSessionOptions updated_answer_options; 2687 cricket::MediaSessionOptions updated_answer_options;
2688 EXPECT_TRUE( 2688 EXPECT_TRUE(
2689 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options)); 2689 ParseConstraintsForAnswer(&updated_answer_c, &updated_answer_options));
2690 EXPECT_TRUE(updated_answer_options.has_audio()); 2690 EXPECT_TRUE(updated_answer_options.has_audio());
2691 EXPECT_TRUE(updated_answer_options.has_video()); 2691 EXPECT_TRUE(updated_answer_options.has_video());
2692 } 2692 }
OLDNEW
« webrtc/api/peerconnectioninterface.h ('K') | « webrtc/api/peerconnectioninterface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698