webrtc/api/test/mock_fec_controller_override.h
Elad Alon 45befc5f1f Pass FecControllerOverride to Vp8FrameBufferControllerFactory::Create
Previously, FecControllerOverride was passed to
Vp8FrameBufferController::SetFecControllerOverride. Passing to
the factory is a more elegant way, since it's only used when
the controller is constructed.

TBR=kwiberg@webrtc.org

Bug: webrtc:10769
Change-Id: Iae599889e7ca9003e3200c2911239cbb763ee65a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/144380
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Elad Alon <eladalon@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28443}
2019-07-02 10:55:55 +00:00

28 lines
856 B
C++

/*
* Copyright 2019 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.
*/
#ifndef API_TEST_MOCK_FEC_CONTROLLER_OVERRIDE_H_
#define API_TEST_MOCK_FEC_CONTROLLER_OVERRIDE_H_
#include "api/fec_controller_override.h"
#include "test/gmock.h"
namespace webrtc {
class MockFecControllerOverride : public FecControllerOverride {
public:
~MockFecControllerOverride() override = default;
MOCK_METHOD1(SetFecAllowed, void(bool fec_allowed));
};
} // namespace webrtc
#endif // API_TEST_MOCK_FEC_CONTROLLER_OVERRIDE_H_