Sebastian Jansson | 8326780 | 2018-04-19 06:27:19 | [diff] [blame] | 1 | /* |
| 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 | |
| 18 | namespace webrtc { |
| 19 | class MockBitrateAllocator : public BitrateAllocatorInterface { |
| 20 | public: |
Danil Chapovalov | 9a5efe9 | 2020-05-14 20:06:18 | [diff] [blame] | 21 | MOCK_METHOD(void, |
| 22 | AddObserver, |
| 23 | (BitrateAllocatorObserver*, MediaStreamAllocationConfig), |
| 24 | (override)); |
| 25 | MOCK_METHOD(void, RemoveObserver, (BitrateAllocatorObserver*), (override)); |
| 26 | MOCK_METHOD(int, |
| 27 | GetStartBitrate, |
| 28 | (BitrateAllocatorObserver*), |
| 29 | (const, override)); |
Sebastian Jansson | 8326780 | 2018-04-19 06:27:19 | [diff] [blame] | 30 | }; |
| 31 | } // namespace webrtc |
| 32 | #endif // CALL_TEST_MOCK_BITRATE_ALLOCATOR_H_ |