From 94dc17710fd73ccb9717c8947c77c2e0defd3cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20H=C3=B6glund?= Date: Tue, 2 Jan 2018 14:20:17 +0100 Subject: [PATCH] Add mock_bitrate_controller.h. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:7622 Change-Id: I346dca091406ec7ef7c65fae9fe89c4dc2a94514 Reviewed-on: https://webrtc-review.googlesource.com/37020 Reviewed-by: Mirko Bonadei Commit-Queue: Patrik Höglund Cr-Commit-Position: refs/heads/master@{#21472} --- audio/BUILD.gn | 1 + modules/bitrate_controller/BUILD.gn | 11 +++++++++++ modules/congestion_controller/BUILD.gn | 1 + 3 files changed, 13 insertions(+) diff --git a/audio/BUILD.gn b/audio/BUILD.gn index afebe93d1b..c6de08ffb4 100644 --- a/audio/BUILD.gn +++ b/audio/BUILD.gn @@ -109,6 +109,7 @@ if (rtc_include_tests) { "../modules/audio_mixer:audio_mixer_impl", "../modules/audio_processing:audio_processing_statistics", "../modules/audio_processing:mocks", + "../modules/bitrate_controller:mocks", "../modules/congestion_controller:congestion_controller", "../modules/congestion_controller:mock_congestion_controller", "../modules/pacing:mock_paced_sender", diff --git a/modules/bitrate_controller/BUILD.gn b/modules/bitrate_controller/BUILD.gn index 1439f54851..267211efa2 100644 --- a/modules/bitrate_controller/BUILD.gn +++ b/modules/bitrate_controller/BUILD.gn @@ -44,6 +44,17 @@ rtc_static_library("bitrate_controller") { } if (rtc_include_tests) { + rtc_source_set("mocks") { + testonly = true + sources = [ + "include/mock/mock_bitrate_controller.h", + ] + deps = [ + ":bitrate_controller", + "../../test:test_support", + ] + } + rtc_source_set("bitrate_controller_unittests") { testonly = true diff --git a/modules/congestion_controller/BUILD.gn b/modules/congestion_controller/BUILD.gn index c014934c0c..df6599f3c9 100644 --- a/modules/congestion_controller/BUILD.gn +++ b/modules/congestion_controller/BUILD.gn @@ -98,6 +98,7 @@ if (rtc_include_tests) { "../../test:field_trial", "../../test:test_support", "../bitrate_controller:bitrate_controller", + "../bitrate_controller:mocks", "../pacing:mock_paced_sender", "../pacing:pacing", "../remote_bitrate_estimator:remote_bitrate_estimator",