blob: f00ed79c59fb78289f8d904d89afe865b59b9e58 [file] [log] [blame]
Sebastian Jansson83267802018-04-19 08:27:19 +02001/*
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#ifndef CALL_TEST_MOCK_BITRATE_ALLOCATOR_H_
11#define CALL_TEST_MOCK_BITRATE_ALLOCATOR_H_
12
13#include <string>
14
15#include "call/bitrate_allocator.h"
16#include "test/gmock.h"
17
18namespace webrtc {
19class MockBitrateAllocator : public BitrateAllocatorInterface {
20 public:
21 MOCK_METHOD2(AddObserver,
22 void(BitrateAllocatorObserver*, MediaStreamAllocationConfig));
23 MOCK_METHOD1(RemoveObserver, void(BitrateAllocatorObserver*));
Sebastian Jansson44a262a2018-10-24 16:07:20 +020024 MOCK_CONST_METHOD1(GetStartBitrate, int(BitrateAllocatorObserver*));
Sebastian Jansson83267802018-04-19 08:27:19 +020025};
26} // namespace webrtc
27#endif // CALL_TEST_MOCK_BITRATE_ALLOCATOR_H_