null_transport.h 918 B

123456789101112131415161718192021222324252627282930
  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. */
  10. #ifndef TEST_NULL_TRANSPORT_H_
  11. #define TEST_NULL_TRANSPORT_H_
  12. #include "api/call/transport.h"
  13. namespace webrtc {
  14. class PacketReceiver;
  15. namespace test {
  16. class NullTransport : public Transport {
  17. public:
  18. bool SendRtp(const uint8_t* packet,
  19. size_t length,
  20. const PacketOptions& options) override;
  21. bool SendRtcp(const uint8_t* packet, size_t length) override;
  22. };
  23. } // namespace test
  24. } // namespace webrtc
  25. #endif // TEST_NULL_TRANSPORT_H_