blob: 5d21d9147b5386b013c0c7e98af0a5b01dce8fc6 [file] [log] [blame]
Jiawei Ou4206a0a2018-07-20 15:49:43 -07001/*
2 * Copyright (c) 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_VIDEO_BITRATE_ALLOCATOR_H_
12#define API_TEST_MOCK_VIDEO_BITRATE_ALLOCATOR_H_
13
14#include "api/video/video_bitrate_allocator.h"
15#include "test/gmock.h"
16
17namespace webrtc {
18
19class MockVideoBitrateAllocator : public webrtc::VideoBitrateAllocator {
Florent Castelli8bbdb5b2019-08-02 15:16:28 +020020 MOCK_METHOD1(
21 Allocate,
22 VideoBitrateAllocation(VideoBitrateAllocationParameters parameters));
Jiawei Ou4206a0a2018-07-20 15:49:43 -070023 MOCK_METHOD1(GetPreferredBitrateBps, uint32_t(uint32_t framerate));
24};
25
26} // namespace webrtc
27
28#endif // API_TEST_MOCK_VIDEO_BITRATE_ALLOCATOR_H_