mock_bitrate_allocator.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. #include <string>
  13. #include "call/bitrate_allocator.h"
  14. #include "test/gmock.h"
  15. namespace webrtc {
  16. class MockBitrateAllocator : public BitrateAllocatorInterface {
  17. public:
  18. MOCK_METHOD(void,
  19. AddObserver,
  20. (BitrateAllocatorObserver*, MediaStreamAllocationConfig),
  21. (override));
  22. MOCK_METHOD(void, RemoveObserver, (BitrateAllocatorObserver*), (override));
  23. MOCK_METHOD(int,
  24. GetStartBitrate,
  25. (BitrateAllocatorObserver*),
  26. (const, override));
  27. };
  28. } // namespace webrtc
  29. #endif // CALL_TEST_MOCK_BITRATE_ALLOCATOR_H_