Files
platform-external-webrtc/call/adaptation/test/fake_frame_rate_provider.cc
Henrik Boström 722fa4d509 [Adaptation] Misc tests for processor, input provider and restrictions.
This CL adds miscellaneous unit tests for the
ResourceAdaptationProcessor, the VideoSourceRestrictions comparators and
the VideoStreamInputStateProvider.

Bug: webrtc:11172
Change-Id: If95f69644aaf2b43e3b19d5729bedef0b438c77b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/174101
Reviewed-by: Evan Shrubsole <eshr@google.com>
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31147}
2020-04-29 15:59:14 +00:00

28 lines
755 B
C++

/*
* Copyright (c) 2020 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.
*/
#include "call/adaptation/test/fake_frame_rate_provider.h"
#include "test/gmock.h"
using ::testing::Return;
namespace webrtc {
FakeFrameRateProvider::FakeFrameRateProvider() {
set_fps(0);
}
void FakeFrameRateProvider::set_fps(int fps) {
EXPECT_CALL(*this, GetInputFrameRate()).WillRepeatedly(Return(fps));
}
} // namespace webrtc