webrtc/test/mock_transport.h
Harald Alvestrand d43af9172b Remove internal overrides using old SendRtp and SendRtcp interfaces.
This CL takes away all usages except for Android code.

Low-Coverage-Reason: Refactoring old code
Bug: webrtc:15410
Change-Id: I66bed6a4a2787b4177a82e599b48623ca67cd235
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/315940
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40554}
2023-08-15 13:20:21 +00:00

33 lines
921 B
C++

/*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef TEST_MOCK_TRANSPORT_H_
#define TEST_MOCK_TRANSPORT_H_
#include "api/call/transport.h"
#include "test/gmock.h"
namespace webrtc {
class MockTransport : public Transport {
public:
MockTransport();
~MockTransport();
MOCK_METHOD(bool,
SendRtp,
(rtc::ArrayView<const uint8_t>, const PacketOptions&),
(override));
MOCK_METHOD(bool, SendRtcp, (rtc::ArrayView<const uint8_t>), (override));
};
} // namespace webrtc
#endif // TEST_MOCK_TRANSPORT_H_