2018-04-19 08:27:19 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright 2018 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
#ifndef CALL_TEST_MOCK_BITRATE_ALLOCATOR_H_
|
|
|
|
|
#define CALL_TEST_MOCK_BITRATE_ALLOCATOR_H_
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
#include "call/bitrate_allocator.h"
|
|
|
|
|
#include "test/gmock.h"
|
|
|
|
|
|
|
|
|
|
namespace webrtc {
|
|
|
|
|
class MockBitrateAllocator : public BitrateAllocatorInterface {
|
|
|
|
|
public:
|
|
|
|
|
MOCK_METHOD2(AddObserver,
|
|
|
|
|
void(BitrateAllocatorObserver*, MediaStreamAllocationConfig));
|
|
|
|
|
MOCK_METHOD1(RemoveObserver, void(BitrateAllocatorObserver*));
|
2018-10-24 16:07:20 +02:00
|
|
|
MOCK_CONST_METHOD1(GetStartBitrate, int(BitrateAllocatorObserver*));
|
2018-04-19 08:27:19 +02:00
|
|
|
};
|
|
|
|
|
} // namespace webrtc
|
|
|
|
|
#endif // CALL_TEST_MOCK_BITRATE_ALLOCATOR_H_
|