1 /* 2 * Copyright 2020 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 11 #ifndef CALL_ADAPTATION_TEST_FAKE_VIDEO_STREAM_INPUT_STATE_PROVIDER_H_ 12 #define CALL_ADAPTATION_TEST_FAKE_VIDEO_STREAM_INPUT_STATE_PROVIDER_H_ 13 14 #include "call/adaptation/video_stream_input_state_provider.h" 15 16 namespace webrtc { 17 18 class FakeVideoStreamInputStateProvider : public VideoStreamInputStateProvider { 19 public: 20 FakeVideoStreamInputStateProvider(); 21 virtual ~FakeVideoStreamInputStateProvider(); 22 23 void SetInputState(int input_pixels, int input_fps, int min_pixels_per_frame); 24 VideoStreamInputState InputState() override; 25 26 private: 27 VideoStreamInputState fake_input_state_; 28 }; 29 30 } // namespace webrtc 31 32 #endif // CALL_ADAPTATION_TEST_FAKE_VIDEO_STREAM_INPUT_STATE_PROVIDER_H_ 33