| 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 |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "webrtc/p2p/base/p2pconstants.h" | 15 #include "webrtc/p2p/base/p2pconstants.h" |
| 16 #include "webrtc/p2p/base/transportdescription.h" | 16 #include "webrtc/p2p/base/transportdescription.h" |
| 17 #include "webrtc/p2p/base/transportdescriptionfactory.h" | 17 #include "webrtc/p2p/base/transportdescriptionfactory.h" |
| 18 #include "webrtc/base/fakesslidentity.h" | 18 #include "webrtc/rtc_base/fakesslidentity.h" |
| 19 #include "webrtc/base/gunit.h" | 19 #include "webrtc/rtc_base/gunit.h" |
| 20 #include "webrtc/base/ssladapter.h" | 20 #include "webrtc/rtc_base/ssladapter.h" |
| 21 | 21 |
| 22 using cricket::TransportDescriptionFactory; | 22 using cricket::TransportDescriptionFactory; |
| 23 using cricket::TransportDescription; | 23 using cricket::TransportDescription; |
| 24 using cricket::TransportOptions; | 24 using cricket::TransportOptions; |
| 25 | 25 |
| 26 class TransportDescriptionFactoryTest : public testing::Test { | 26 class TransportDescriptionFactoryTest : public testing::Test { |
| 27 public: | 27 public: |
| 28 TransportDescriptionFactoryTest() | 28 TransportDescriptionFactoryTest() |
| 29 : cert1_(rtc::RTCCertificate::Create(std::unique_ptr<rtc::SSLIdentity>( | 29 : cert1_(rtc::RTCCertificate::Create(std::unique_ptr<rtc::SSLIdentity>( |
| 30 new rtc::FakeSSLIdentity("User1")))), | 30 new rtc::FakeSSLIdentity("User1")))), |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 // Test that offers and answers have ice-option:trickle. | 303 // Test that offers and answers have ice-option:trickle. |
| 304 TEST_F(TransportDescriptionFactoryTest, AddsTrickleIceOption) { | 304 TEST_F(TransportDescriptionFactoryTest, AddsTrickleIceOption) { |
| 305 cricket::TransportOptions options; | 305 cricket::TransportOptions options; |
| 306 std::unique_ptr<TransportDescription> offer( | 306 std::unique_ptr<TransportDescription> offer( |
| 307 f1_.CreateOffer(options, nullptr)); | 307 f1_.CreateOffer(options, nullptr)); |
| 308 EXPECT_TRUE(offer->HasOption("trickle")); | 308 EXPECT_TRUE(offer->HasOption("trickle")); |
| 309 std::unique_ptr<TransportDescription> answer( | 309 std::unique_ptr<TransportDescription> answer( |
| 310 f2_.CreateAnswer(offer.get(), options, true, nullptr)); | 310 f2_.CreateAnswer(offer.get(), options, true, nullptr)); |
| 311 EXPECT_TRUE(answer->HasOption("trickle")); | 311 EXPECT_TRUE(answer->HasOption("trickle")); |
| 312 } | 312 } |
| OLD | NEW |