Eliminate unnecessary `RTC_TRACE_EVENTS_ENABLED` Bug: webrtc:14073 Change-Id: I6365cc17393be52c11312dfa954783a3e135cb8c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/262263 Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Johannes Kron <kron@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36929}
diff --git a/pc/rtc_stats_integrationtest.cc b/pc/rtc_stats_integrationtest.cc index cdb75ad..598395a 100644 --- a/pc/rtc_stats_integrationtest.cc +++ b/pc/rtc_stats_integrationtest.cc
@@ -1169,7 +1169,7 @@ #if RTC_TRACE_EVENTS_ENABLED EXPECT_EQ(report->ToJson(), RTCStatsReportTraceListener::last_trace()); - #endif +#endif } TEST_F(RTCStatsIntegrationTest, GetStatsFromCallee) { @@ -1180,7 +1180,7 @@ #if RTC_TRACE_EVENTS_ENABLED EXPECT_EQ(report->ToJson(), RTCStatsReportTraceListener::last_trace()); - #endif +#endif } // These tests exercise the integration of the stats selection algorithm inside @@ -1260,10 +1260,10 @@ // Any pending stats requests should have completed in the act of destroying // the peer connection. ASSERT_TRUE(stats_obtainer->report()); - #if RTC_TRACE_EVENTS_ENABLED +#if RTC_TRACE_EVENTS_ENABLED EXPECT_EQ(stats_obtainer->report()->ToJson(), RTCStatsReportTraceListener::last_trace()); - #endif +#endif } TEST_F(RTCStatsIntegrationTest, GetsStatsWhileClosingPeerConnection) { @@ -1275,10 +1275,10 @@ caller_->pc()->Close(); ASSERT_TRUE(stats_obtainer->report()); - #if RTC_TRACE_EVENTS_ENABLED +#if RTC_TRACE_EVENTS_ENABLED EXPECT_EQ(stats_obtainer->report()->ToJson(), RTCStatsReportTraceListener::last_trace()); - #endif +#endif } // GetStatsReferencedIds() is optimized to recognize what is or isn't a