blob: d25537a2b93c5f6479d8177a8d4e41b575b7caed [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 {
20 MOCK_METHOD2(GetAllocation,
21 VideoBitrateAllocation(uint32_t total_bitrate,
22 uint32_t framerate));
23 MOCK_METHOD1(GetPreferredBitrateBps, uint32_t(uint32_t framerate));
24};
25
26} // namespace webrtc
27
28#endif // API_TEST_MOCK_VIDEO_BITRATE_ALLOCATOR_H_