pbos@webrtc.org | 119a1cc | 2013-08-20 13:14:07 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 10 | #ifndef TEST_NULL_TRANSPORT_H_ |
| 11 | #define TEST_NULL_TRANSPORT_H_ |
pbos@webrtc.org | 119a1cc | 2013-08-20 13:14:07 +0000 | [diff] [blame] | 12 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 13 | #include "api/call/transport.h" |
pbos@webrtc.org | 119a1cc | 2013-08-20 13:14:07 +0000 | [diff] [blame] | 14 | |
| 15 | namespace webrtc { |
| 16 | |
pbos@webrtc.org | 119a1cc | 2013-08-20 13:14:07 +0000 | [diff] [blame] | 17 | class PacketReceiver; |
pbos@webrtc.org | 119a1cc | 2013-08-20 13:14:07 +0000 | [diff] [blame] | 18 | |
| 19 | namespace test { |
pbos | 2d56668 | 2015-09-28 09:59:31 -0700 | [diff] [blame] | 20 | class NullTransport : public Transport { |
pbos@webrtc.org | 119a1cc | 2013-08-20 13:14:07 +0000 | [diff] [blame] | 21 | public: |
stefan | 1d8a506 | 2015-10-02 03:39:33 -0700 | [diff] [blame] | 22 | bool SendRtp(const uint8_t* packet, |
| 23 | size_t length, |
| 24 | const PacketOptions& options) override; |
kjellander@webrtc.org | 14665ff | 2015-03-04 12:58:35 +0000 | [diff] [blame] | 25 | bool SendRtcp(const uint8_t* packet, size_t length) override; |
pbos@webrtc.org | 119a1cc | 2013-08-20 13:14:07 +0000 | [diff] [blame] | 26 | }; |
| 27 | } // namespace test |
| 28 | } // namespace webrtc |
| 29 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame] | 30 | #endif // TEST_NULL_TRANSPORT_H_ |