| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2017 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2017 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 #ifndef WEBRTC_P2P_BASE_FAKEDTLSTRANSPORT_H_ | 11 #ifndef WEBRTC_P2P_BASE_FAKEDTLSTRANSPORT_H_ |
| 12 #define WEBRTC_P2P_BASE_FAKEDTLSTRANSPORT_H_ | 12 #define WEBRTC_P2P_BASE_FAKEDTLSTRANSPORT_H_ |
| 13 | 13 |
| 14 #include <memory> | 14 #include <memory> |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "webrtc/base/fakesslidentity.h" |
| 18 #include "webrtc/p2p/base/dtlstransportinternal.h" | 19 #include "webrtc/p2p/base/dtlstransportinternal.h" |
| 19 #include "webrtc/p2p/base/fakeicetransport.h" | 20 #include "webrtc/p2p/base/fakeicetransport.h" |
| 20 #include "webrtc/rtc_base/fakesslidentity.h" | |
| 21 | 21 |
| 22 namespace cricket { | 22 namespace cricket { |
| 23 | 23 |
| 24 // Fake DTLS transport which is implemented by wrapping a fake ICE transport. | 24 // Fake DTLS transport which is implemented by wrapping a fake ICE transport. |
| 25 // Doesn't interact directly with fake ICE transport for anything other than | 25 // Doesn't interact directly with fake ICE transport for anything other than |
| 26 // sending packets. | 26 // sending packets. |
| 27 class FakeDtlsTransport : public DtlsTransportInternal { | 27 class FakeDtlsTransport : public DtlsTransportInternal { |
| 28 public: | 28 public: |
| 29 explicit FakeDtlsTransport(FakeIceTransport* ice_transport) | 29 explicit FakeDtlsTransport(FakeIceTransport* ice_transport) |
| 30 : ice_transport_(ice_transport), | 30 : ice_transport_(ice_transport), |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 245 |
| 246 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; | 246 DtlsTransportState dtls_state_ = DTLS_TRANSPORT_NEW; |
| 247 | 247 |
| 248 bool receiving_ = false; | 248 bool receiving_ = false; |
| 249 bool writable_ = false; | 249 bool writable_ = false; |
| 250 }; | 250 }; |
| 251 | 251 |
| 252 } // namespace cricket | 252 } // namespace cricket |
| 253 | 253 |
| 254 #endif // WEBRTC_P2P_BASE_FAKEDTLSTRANSPORT_H_ | 254 #endif // WEBRTC_P2P_BASE_FAKEDTLSTRANSPORT_H_ |
| OLD | NEW |