From 5297cf368dab86dcc9fd89553218d42d5bec95f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Thu, 8 Aug 2019 14:38:44 +0200 Subject: [PATCH] Delete unused class MockTargetTransferRateObserver Bug: None Change-Id: I60e9dc05450207dfd572ae17a42cf1adaed4c1b6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/148525 Reviewed-by: Sebastian Jansson Commit-Queue: Niels Moller Cr-Commit-Position: refs/heads/master@{#28813} --- api/transport/BUILD.gn | 13 ---------- api/transport/test/mock_network_control.h | 26 ------------------- modules/congestion_controller/bbr/BUILD.gn | 1 - .../congestion_controller/goog_cc/BUILD.gn | 1 - modules/congestion_controller/pcc/BUILD.gn | 1 - 5 files changed, 42 deletions(-) delete mode 100644 api/transport/test/mock_network_control.h diff --git a/api/transport/BUILD.gn b/api/transport/BUILD.gn index 07605308ec..966cb7dd19 100644 --- a/api/transport/BUILD.gn +++ b/api/transport/BUILD.gn @@ -109,17 +109,4 @@ if (rtc_include_tests) { "//third_party/abseil-cpp/absl/memory", ] } - rtc_source_set("network_control_test") { - testonly = true - sources = [ - "test/mock_network_control.h", - ] - deps = [ - ":network_control", - "../../rtc_base:checks", - "../../rtc_base:rtc_base_approved", - "../../test:test_support", - "//third_party/abseil-cpp/absl/types:optional", - ] - } } diff --git a/api/transport/test/mock_network_control.h b/api/transport/test/mock_network_control.h deleted file mode 100644 index df83791e18..0000000000 --- a/api/transport/test/mock_network_control.h +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2018 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_TRANSPORT_TEST_MOCK_NETWORK_CONTROL_H_ -#define API_TRANSPORT_TEST_MOCK_NETWORK_CONTROL_H_ - -#include "api/transport/include/network_control.h" -#include "test/gmock.h" - -namespace webrtc { -namespace test { -class MockTargetTransferRateObserver : public TargetTransferRateObserver { - public: - MOCK_METHOD1(OnTargetTransferRate, void(TargetTransferRate)); -}; -} // namespace test -} // namespace webrtc - -#endif // API_TRANSPORT_TEST_MOCK_NETWORK_CONTROL_H_ diff --git a/modules/congestion_controller/bbr/BUILD.gn b/modules/congestion_controller/bbr/BUILD.gn index dd99b02d65..c3c9e1082a 100644 --- a/modules/congestion_controller/bbr/BUILD.gn +++ b/modules/congestion_controller/bbr/BUILD.gn @@ -136,7 +136,6 @@ if (rtc_include_tests) { ":packet_number_indexed_queue", ":rtt_stats", ":windowed_filter", - "../../../api/transport:network_control_test", "../../../api/units:data_rate", "../../../api/units:time_delta", "../../../api/units:timestamp", diff --git a/modules/congestion_controller/goog_cc/BUILD.gn b/modules/congestion_controller/goog_cc/BUILD.gn index 87866896b3..045fd48a9e 100644 --- a/modules/congestion_controller/goog_cc/BUILD.gn +++ b/modules/congestion_controller/goog_cc/BUILD.gn @@ -242,7 +242,6 @@ if (rtc_include_tests) { "../../../api/transport:field_trial_based_config", "../../../api/transport:goog_cc", "../../../api/transport:network_control", - "../../../api/transport:network_control_test", "../../../api/transport:webrtc_key_value_config", "../../../api/units:data_rate", "../../../api/units:timestamp", diff --git a/modules/congestion_controller/pcc/BUILD.gn b/modules/congestion_controller/pcc/BUILD.gn index a0b3f2b8a4..2a30a22602 100644 --- a/modules/congestion_controller/pcc/BUILD.gn +++ b/modules/congestion_controller/pcc/BUILD.gn @@ -119,7 +119,6 @@ if (rtc_include_tests) { ":rtt_tracker", ":utility_function", "../../../api/transport:network_control", - "../../../api/transport:network_control_test", "../../../api/units:data_rate", "../../../api/units:data_size", "../../../api/units:time_delta",