You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
926 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Copyright 2019 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 PC_TEST_MOCK_DELAYABLE_H_
  11. #define PC_TEST_MOCK_DELAYABLE_H_
  12. #include <stdint.h>
  13. #include "absl/types/optional.h"
  14. #include "media/base/delayable.h"
  15. #include "test/gmock.h"
  16. namespace webrtc {
  17. class MockDelayable : public cricket::Delayable {
  18. public:
  19. MOCK_METHOD2(SetBaseMinimumPlayoutDelayMs, bool(uint32_t ssrc, int delay_ms));
  20. MOCK_CONST_METHOD1(GetBaseMinimumPlayoutDelayMs,
  21. absl::optional<int>(uint32_t ssrc));
  22. };
  23. } // namespace webrtc
  24. #endif // PC_TEST_MOCK_DELAYABLE_H_