2013-12-04 10:24:26 +00:00
|
|
|
/*
|
|
|
|
|
* 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 WEBRTC_TEST_MOCK_TRANSPORT_H_
|
|
|
|
|
#define WEBRTC_TEST_MOCK_TRANSPORT_H_
|
|
|
|
|
|
2016-09-28 17:42:01 -07:00
|
|
|
#include "webrtc/test/gmock.h"
|
2013-12-04 10:24:26 +00:00
|
|
|
#include "webrtc/transport.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
2015-09-28 09:59:31 -07:00
|
|
|
class MockTransport : public Transport {
|
2013-12-04 10:24:26 +00:00
|
|
|
public:
|
2015-10-02 03:39:33 -07:00
|
|
|
MOCK_METHOD3(SendRtp,
|
|
|
|
|
bool(const uint8_t* data,
|
|
|
|
|
size_t len,
|
|
|
|
|
const PacketOptions& options));
|
2015-09-28 09:59:31 -07:00
|
|
|
MOCK_METHOD2(SendRtcp, bool(const uint8_t* data, size_t len));
|
2013-12-04 10:24:26 +00:00
|
|
|
};
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
#endif // WEBRTC_TEST_MOCK_TRANSPORT_H_
|