OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |