blob: f264e7b45a7e66e8208c380259a1caad46307928 [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 */
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020010#ifndef TEST_NULL_TRANSPORT_H_
11#define TEST_NULL_TRANSPORT_H_
pbos@webrtc.org119a1cc2013-08-20 13:14:07 +000012
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020013#include "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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020030#endif // TEST_NULL_TRANSPORT_H_