Index: webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc |
diff --git a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc |
index 8b04d00d38e8316208fc8d892b7c963cc6a2069d..4c3b903058ddd796535d736dbeb242f546077b1b 100644 |
--- a/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc |
+++ b/webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc |
@@ -14,7 +14,6 @@ |
#include <sstream> |
-#include "webrtc/base/common.h" |
#include "webrtc/base/constructormagic.h" |
namespace webrtc { |
@@ -225,10 +224,7 @@ RateCounterFilter::RateCounterFilter(PacketProcessorListener* listener, |
start_plotting_time_ms_(0), |
flow_id_(flow_id), |
name_(name), |
- algorithm_name_(algorithm_name) { |
- // Only used when compiling with BWE test logging enabled. |
- RTC_UNUSED(flow_id_); |
- } |
+ algorithm_name_(algorithm_name) {} |
RateCounterFilter::RateCounterFilter(PacketProcessorListener* listener, |
const FlowIds& flow_ids, |
@@ -278,6 +274,7 @@ Stats<double> RateCounterFilter::GetBitrateStats() const { |
} |
void RateCounterFilter::Plot(int64_t timestamp_ms) { |
+#if BWE_TEST_LOGGING_COMPILE_TIME_ENABLE |
uint32_t plot_kbps = 0; |
if (timestamp_ms >= start_plotting_time_ms_) { |
plot_kbps = rate_counter_.bits_per_second() / 1000.0; |
@@ -291,8 +288,7 @@ void RateCounterFilter::Plot(int64_t timestamp_ms) { |
timestamp_ms, plot_kbps, flow_id_, |
algorithm_name_); |
} |
- |
- RTC_UNUSED(plot_kbps); |
+#endif |
} |
void RateCounterFilter::RunFor(int64_t /*time_ms*/, Packets* in_out) { |