From 12d1285707cc734134a270387af889b2c6ec572e Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Tue, 5 Feb 2019 17:04:04 +0100 Subject: [PATCH] Use the new TEST_SUITE GoogleTest API (regression). WebRTC has been migrated to the new API [1]. A presubmit check will avoid further regressions [2]. [1] - https://webrtc-review.googlesource.com/c/118701 [2] - https://webrtc-review.googlesource.com/c/120924 Bug: None Change-Id: I77faa5e8a4a8432375dc2781886a3c501bd5a797 Reviewed-on: https://webrtc-review.googlesource.com/c/121565 Reviewed-by: Stefan Holmer Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#26561} --- video/receive_statistics_proxy_unittest.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/video/receive_statistics_proxy_unittest.cc b/video/receive_statistics_proxy_unittest.cc index 3d870b4376..41a279d91e 100644 --- a/video/receive_statistics_proxy_unittest.cc +++ b/video/receive_statistics_proxy_unittest.cc @@ -1052,12 +1052,12 @@ const auto kFreezeDetectionCond1NotFreeze = std::make_tuple(150, 482, 0); const auto kFreezeDetectionCond2Freeze = std::make_tuple(30, 185, 1); const auto kFreezeDetectionCond2NotFreeze = std::make_tuple(30, 184, 0); -INSTANTIATE_TEST_CASE_P(_, - ReceiveStatisticsProxyTestWithFreezeDuration, - ::testing::Values(kFreezeDetectionCond1Freeze, - kFreezeDetectionCond1NotFreeze, - kFreezeDetectionCond2Freeze, - kFreezeDetectionCond2NotFreeze)); +INSTANTIATE_TEST_SUITE_P(_, + ReceiveStatisticsProxyTestWithFreezeDuration, + ::testing::Values(kFreezeDetectionCond1Freeze, + kFreezeDetectionCond1NotFreeze, + kFreezeDetectionCond2Freeze, + kFreezeDetectionCond2NotFreeze)); TEST_P(ReceiveStatisticsProxyTestWithFreezeDuration, FreezeDetection) { VideoReceiveStream::Stats stats = statistics_proxy_->GetStats(); @@ -1090,10 +1090,10 @@ class ReceiveStatisticsProxyTestWithContent const webrtc::VideoContentType content_type_{GetParam()}; }; -INSTANTIATE_TEST_CASE_P(ContentTypes, - ReceiveStatisticsProxyTestWithContent, - ::testing::Values(VideoContentType::UNSPECIFIED, - VideoContentType::SCREENSHARE)); +INSTANTIATE_TEST_SUITE_P(ContentTypes, + ReceiveStatisticsProxyTestWithContent, + ::testing::Values(VideoContentType::UNSPECIFIED, + VideoContentType::SCREENSHARE)); TEST_P(ReceiveStatisticsProxyTestWithContent, InterFrameDelaysAreReported) { const int kInterFrameDelayMs = 33;