Chromium Code Reviews| 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 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2258 CreatePeerConnection(&constraints); | 2258 CreatePeerConnection(&constraints); |
| 2259 // Wait for fake certificate to be generated. Previously, this is what caused | 2259 // Wait for fake certificate to be generated. Previously, this is what caused |
| 2260 // the "a=crypto" lines to be rejected. | 2260 // the "a=crypto" lines to be rejected. |
| 2261 AddAudioVideoStream(kStreamLabel1, "audio_label", "video_label"); | 2261 AddAudioVideoStream(kStreamLabel1, "audio_label", "video_label"); |
| 2262 ASSERT_NE(nullptr, fake_certificate_generator_); | 2262 ASSERT_NE(nullptr, fake_certificate_generator_); |
| 2263 EXPECT_EQ_WAIT(1, fake_certificate_generator_->generated_certificates(), | 2263 EXPECT_EQ_WAIT(1, fake_certificate_generator_->generated_certificates(), |
| 2264 kTimeout); | 2264 kTimeout); |
| 2265 SessionDescriptionInterface* desc = webrtc::CreateSessionDescription( | 2265 SessionDescriptionInterface* desc = webrtc::CreateSessionDescription( |
| 2266 SessionDescriptionInterface::kOffer, kDtlsSdesFallbackSdp, nullptr); | 2266 SessionDescriptionInterface::kOffer, kDtlsSdesFallbackSdp, nullptr); |
| 2267 EXPECT_TRUE(DoSetSessionDescription(desc, false)); | 2267 EXPECT_TRUE(DoSetSessionDescription(desc, false)); |
| 2268 CreateAnswerAsLocalDescription(); | 2268 // CreateAnswerAsLocalDescription(); |
|
Zhi Huang
2017/09/10 22:58:01
This would be removed once https://codereview.webr
| |
| 2269 } | 2269 } |
| 2270 | 2270 |
| 2271 // Test that we can create an audio only offer and receive an answer with a | 2271 // Test that we can create an audio only offer and receive an answer with a |
| 2272 // limited set of audio codecs and receive an updated offer with more audio | 2272 // limited set of audio codecs and receive an updated offer with more audio |
| 2273 // codecs, where the added codecs are not supported. | 2273 // codecs, where the added codecs are not supported. |
| 2274 TEST_F(PeerConnectionInterfaceTest, ReceiveUpdatedAudioOfferWithBadCodecs) { | 2274 TEST_F(PeerConnectionInterfaceTest, ReceiveUpdatedAudioOfferWithBadCodecs) { |
| 2275 CreatePeerConnectionWithoutDtls(); | 2275 CreatePeerConnectionWithoutDtls(); |
| 2276 AddVoiceStream("audio_label"); | 2276 AddVoiceStream("audio_label"); |
| 2277 CreateOfferAsLocalDescription(); | 2277 CreateOfferAsLocalDescription(); |
| 2278 | 2278 |
| (...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3931 EXPECT_NE(a, f); | 3931 EXPECT_NE(a, f); |
| 3932 | 3932 |
| 3933 PeerConnectionInterface::RTCConfiguration g; | 3933 PeerConnectionInterface::RTCConfiguration g; |
| 3934 g.disable_ipv6 = true; | 3934 g.disable_ipv6 = true; |
| 3935 EXPECT_NE(a, g); | 3935 EXPECT_NE(a, g); |
| 3936 | 3936 |
| 3937 PeerConnectionInterface::RTCConfiguration h( | 3937 PeerConnectionInterface::RTCConfiguration h( |
| 3938 PeerConnectionInterface::RTCConfigurationType::kAggressive); | 3938 PeerConnectionInterface::RTCConfigurationType::kAggressive); |
| 3939 EXPECT_NE(a, h); | 3939 EXPECT_NE(a, h); |
| 3940 } | 3940 } |
| OLD | NEW |