2018-10-25 09:52:57 -07:00
|
|
|
/*
|
|
|
|
|
* Copyright 2018 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 API_TEST_MOCK_FRAME_DECRYPTOR_H_
|
|
|
|
|
#define API_TEST_MOCK_FRAME_DECRYPTOR_H_
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#include "api/crypto/frame_decryptor_interface.h"
|
2018-10-25 09:52:57 -07:00
|
|
|
#include "test/gmock.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
|
|
|
|
|
class MockFrameDecryptor : public FrameDecryptorInterface {
|
|
|
|
|
public:
|
|
|
|
|
MockFrameDecryptor();
|
|
|
|
|
~MockFrameDecryptor() override;
|
|
|
|
|
|
2019-04-09 10:36:31 +00:00
|
|
|
MOCK_METHOD6(Decrypt,
|
|
|
|
|
int(cricket::MediaType,
|
|
|
|
|
const std::vector<uint32_t>&,
|
|
|
|
|
rtc::ArrayView<const uint8_t>,
|
|
|
|
|
rtc::ArrayView<const uint8_t>,
|
|
|
|
|
rtc::ArrayView<uint8_t>,
|
|
|
|
|
size_t*));
|
2018-10-25 09:52:57 -07:00
|
|
|
|
|
|
|
|
MOCK_METHOD2(GetMaxPlaintextByteSize,
|
|
|
|
|
size_t(cricket::MediaType, size_t encrypted_frame_size));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
|
|
|
|
|
#endif // API_TEST_MOCK_FRAME_DECRYPTOR_H_
|