blob: 3f762ff0d73ebd13f238e70ab5461195c96dc382 [file] [log] [blame]
Benjamin Wright78410ad2018-10-25 16:52:571/*
2 * Copyright 2018 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
11#ifndef API_TEST_MOCK_FRAME_DECRYPTOR_H_
12#define API_TEST_MOCK_FRAME_DECRYPTOR_H_
13
Dor Hen1921fa52024-08-13 12:43:4714#include <cstddef>
15#include <cstdint>
Benjamin Wright78410ad2018-10-25 16:52:5716#include <vector>
17
Dor Hen1921fa52024-08-13 12:43:4718#include "api/array_view.h"
Steve Anton10542f22019-01-11 17:11:0019#include "api/crypto/frame_decryptor_interface.h"
Dor Hen1921fa52024-08-13 12:43:4720#include "api/media_types.h"
Benjamin Wright78410ad2018-10-25 16:52:5721#include "test/gmock.h"
22
23namespace webrtc {
24
25class MockFrameDecryptor : public FrameDecryptorInterface {
26 public:
Danil Chapovalovfc115192020-05-08 13:03:0327 MOCK_METHOD(Result,
28 Decrypt,
29 (cricket::MediaType,
30 const std::vector<uint32_t>&,
31 rtc::ArrayView<const uint8_t>,
32 rtc::ArrayView<const uint8_t>,
33 rtc::ArrayView<uint8_t>),
34 (override));
Benjamin Wright78410ad2018-10-25 16:52:5735
Danil Chapovalovfc115192020-05-08 13:03:0336 MOCK_METHOD(size_t,
37 GetMaxPlaintextByteSize,
38 (cricket::MediaType, size_t encrypted_frame_size),
39 (override));
Benjamin Wright78410ad2018-10-25 16:52:5740};
41
Benjamin Wright78410ad2018-10-25 16:52:5742} // namespace webrtc
43
44#endif // API_TEST_MOCK_FRAME_DECRYPTOR_H_