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 <stefan@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26561}
This commit is contained in:
Mirko Bonadei 2019-02-05 17:04:04 +01:00 committed by Commit Bot
parent 38c83b9713
commit 12d1285707

View File

@ -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;