| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 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 "webrtc/pc/quicdatatransport.h" | 11 #include "webrtc/pc/quicdatatransport.h" |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 #include <set> | 14 #include <set> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <unordered_map> | 16 #include <unordered_map> |
| 17 #include <vector> | 17 #include <vector> |
| 18 | 18 |
| 19 #include "webrtc/base/bytebuffer.h" | |
| 20 #include "webrtc/base/gunit.h" | |
| 21 #include "webrtc/p2p/base/faketransportcontroller.h" | 19 #include "webrtc/p2p/base/faketransportcontroller.h" |
| 22 #include "webrtc/p2p/quic/quictransportchannel.h" | 20 #include "webrtc/p2p/quic/quictransportchannel.h" |
| 23 #include "webrtc/p2p/quic/reliablequicstream.h" | 21 #include "webrtc/p2p/quic/reliablequicstream.h" |
| 24 #include "webrtc/pc/quicdatachannel.h" | 22 #include "webrtc/pc/quicdatachannel.h" |
| 23 #include "webrtc/rtc_base/bytebuffer.h" |
| 24 #include "webrtc/rtc_base/gunit.h" |
| 25 | 25 |
| 26 using webrtc::DataBuffer; | 26 using webrtc::DataBuffer; |
| 27 using webrtc::DataChannelInit; | 27 using webrtc::DataChannelInit; |
| 28 using webrtc::DataChannelInterface; | 28 using webrtc::DataChannelInterface; |
| 29 using webrtc::DataChannelObserver; | 29 using webrtc::DataChannelObserver; |
| 30 using webrtc::QuicDataChannel; | 30 using webrtc::QuicDataChannel; |
| 31 using webrtc::QuicDataTransport; | 31 using webrtc::QuicDataTransport; |
| 32 using cricket::FakeTransportChannel; | 32 using cricket::FakeTransportChannel; |
| 33 using cricket::FakeTransportController; | 33 using cricket::FakeTransportController; |
| 34 using cricket::QuicTransportChannel; | 34 using cricket::QuicTransportChannel; |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 // equivalent to the one already set. | 341 // equivalent to the one already set. |
| 342 TEST_F(QuicDataTransportTest, SetTransportReturnValue) { | 342 TEST_F(QuicDataTransportTest, SetTransportReturnValue) { |
| 343 QuicDataTransport* quic_data_transport = peer1_.quic_data_transport(); | 343 QuicDataTransport* quic_data_transport = peer1_.quic_data_transport(); |
| 344 // Ignore the same transport name. | 344 // Ignore the same transport name. |
| 345 EXPECT_TRUE(quic_data_transport->SetTransport(kTransportName)); | 345 EXPECT_TRUE(quic_data_transport->SetTransport(kTransportName)); |
| 346 // Return false when setting a different transport name. | 346 // Return false when setting a different transport name. |
| 347 EXPECT_FALSE(quic_data_transport->SetTransport("another transport name")); | 347 EXPECT_FALSE(quic_data_transport->SetTransport("another transport name")); |
| 348 } | 348 } |
| 349 | 349 |
| 350 } // namespace | 350 } // namespace |
| OLD | NEW |