blob: 41c4759b93fec7c2cd1ca773168d78f6df24f2cf [file] [log] [blame]
pbos@webrtc.org119a1cc2013-08-20 13:14:07 +00001/*
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 */
Peter Boström7623ce42015-12-09 12:13:30 +010010#ifndef WEBRTC_TEST_NULL_TRANSPORT_H_
11#define WEBRTC_TEST_NULL_TRANSPORT_H_
pbos@webrtc.org119a1cc2013-08-20 13:14:07 +000012
aleloia8eb7562016-11-28 07:02:13 -080013#include "webrtc/api/call/transport.h"
pbos@webrtc.org119a1cc2013-08-20 13:14:07 +000014
15namespace webrtc {
16
pbos@webrtc.org119a1cc2013-08-20 13:14:07 +000017class PacketReceiver;
pbos@webrtc.org119a1cc2013-08-20 13:14:07 +000018
19namespace test {
pbos2d566682015-09-28 09:59:31 -070020class NullTransport : public Transport {
pbos@webrtc.org119a1cc2013-08-20 13:14:07 +000021 public:
stefan1d8a5062015-10-02 03:39:33 -070022 bool SendRtp(const uint8_t* packet,
23 size_t length,
24 const PacketOptions& options) override;
kjellander@webrtc.org14665ff2015-03-04 12:58:35 +000025 bool SendRtcp(const uint8_t* packet, size_t length) override;
pbos@webrtc.org119a1cc2013-08-20 13:14:07 +000026};
27} // namespace test
28} // namespace webrtc
29
Peter Boström7623ce42015-12-09 12:13:30 +010030#endif // WEBRTC_TEST_NULL_TRANSPORT_H_