• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #include "call/adaptation/test/fake_adaptation_listener.h"
12 
13 namespace webrtc {
14 
FakeAdaptationListener()15 FakeAdaptationListener::FakeAdaptationListener()
16     : num_adaptations_applied_(0) {}
17 
~FakeAdaptationListener()18 FakeAdaptationListener::~FakeAdaptationListener() {}
19 
num_adaptations_applied() const20 size_t FakeAdaptationListener::num_adaptations_applied() const {
21   return num_adaptations_applied_;
22 }
23 
OnAdaptationApplied(const VideoStreamInputState & input_state,const VideoSourceRestrictions & restrictions_before,const VideoSourceRestrictions & restrictions_after,rtc::scoped_refptr<Resource> reason_resource)24 void FakeAdaptationListener::OnAdaptationApplied(
25     const VideoStreamInputState& input_state,
26     const VideoSourceRestrictions& restrictions_before,
27     const VideoSourceRestrictions& restrictions_after,
28     rtc::scoped_refptr<Resource> reason_resource) {
29   ++num_adaptations_applied_;
30 }
31 
32 }  // namespace webrtc
33