Stop using Googletest legacy APIs.
Googletest recently started replacing the term Test Case by Test Suite.
From now on, the preferred API is TestSuite*; the older TestCase* API
will be slowly deprecated.
This CL moves WebRTC to the new set of APIs.
More info in [1].
This CL has been generated with this script:
declare -A items
items[TYPED_TEST_CASE]=TYPED_TEST_SUITE
items[TYPED_TEST_CASE_P]=TYPED_TEST_SUITE_P
items[REGISTER_TYPED_TEST_CASE_P]=REGISTER_TYPED_TEST_SUITE_P
items[INSTANTIATE_TYPED_TEST_CASE_P]=INSTANTIATE_TYPED_TEST_SUITE_P
items[INSTANTIATE_TEST_CASE_P]=INSTANTIATE_TEST_SUITE_P
for i in "${!items[@]}"
do
git ls-files | xargs sed -i "s/\b$i\b/${items[$i]}/g"
done
git cl format
[1] - https://github.com/google/googletest/blob/master/googletest/docs/primer.md#beware-of-the-nomenclature
Bug: None
Change-Id: I5ae191e3046caf347aeee01554d5743548ab0e3f
Reviewed-on: https://webrtc-review.googlesource.com/c/118701
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26494}
This commit is contained in:
committed by
Commit Bot
parent
12e5d392cc
commit
c84f661b10
@ -88,7 +88,7 @@ TEST_P(ComputePitchGainThresholdTest, BitExactness) {
|
||||
}
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
RnnVadTest,
|
||||
ComputePitchGainThresholdTest,
|
||||
::testing::Values(
|
||||
@ -219,48 +219,48 @@ TEST_P(CheckLowerPitchPeriodsAndComputePitchGainTest, BitExactness) {
|
||||
}
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(RnnVadTest,
|
||||
CheckLowerPitchPeriodsAndComputePitchGainTest,
|
||||
::testing::Values(std::make_tuple(kTestPitchPeriods[0],
|
||||
kTestPitchPeriods[0],
|
||||
kTestPitchGains[0],
|
||||
91,
|
||||
-0.0188608f),
|
||||
std::make_tuple(kTestPitchPeriods[0],
|
||||
kTestPitchPeriods[0],
|
||||
kTestPitchGains[1],
|
||||
91,
|
||||
-0.0188608f),
|
||||
std::make_tuple(kTestPitchPeriods[0],
|
||||
kTestPitchPeriods[1],
|
||||
kTestPitchGains[0],
|
||||
91,
|
||||
-0.0188608f),
|
||||
std::make_tuple(kTestPitchPeriods[0],
|
||||
kTestPitchPeriods[1],
|
||||
kTestPitchGains[1],
|
||||
91,
|
||||
-0.0188608f),
|
||||
std::make_tuple(kTestPitchPeriods[1],
|
||||
kTestPitchPeriods[0],
|
||||
kTestPitchGains[0],
|
||||
475,
|
||||
-0.0904344f),
|
||||
std::make_tuple(kTestPitchPeriods[1],
|
||||
kTestPitchPeriods[0],
|
||||
kTestPitchGains[1],
|
||||
475,
|
||||
-0.0904344f),
|
||||
std::make_tuple(kTestPitchPeriods[1],
|
||||
kTestPitchPeriods[1],
|
||||
kTestPitchGains[0],
|
||||
475,
|
||||
-0.0904344f),
|
||||
std::make_tuple(kTestPitchPeriods[1],
|
||||
kTestPitchPeriods[1],
|
||||
kTestPitchGains[1],
|
||||
475,
|
||||
-0.0904344f)));
|
||||
INSTANTIATE_TEST_SUITE_P(RnnVadTest,
|
||||
CheckLowerPitchPeriodsAndComputePitchGainTest,
|
||||
::testing::Values(std::make_tuple(kTestPitchPeriods[0],
|
||||
kTestPitchPeriods[0],
|
||||
kTestPitchGains[0],
|
||||
91,
|
||||
-0.0188608f),
|
||||
std::make_tuple(kTestPitchPeriods[0],
|
||||
kTestPitchPeriods[0],
|
||||
kTestPitchGains[1],
|
||||
91,
|
||||
-0.0188608f),
|
||||
std::make_tuple(kTestPitchPeriods[0],
|
||||
kTestPitchPeriods[1],
|
||||
kTestPitchGains[0],
|
||||
91,
|
||||
-0.0188608f),
|
||||
std::make_tuple(kTestPitchPeriods[0],
|
||||
kTestPitchPeriods[1],
|
||||
kTestPitchGains[1],
|
||||
91,
|
||||
-0.0188608f),
|
||||
std::make_tuple(kTestPitchPeriods[1],
|
||||
kTestPitchPeriods[0],
|
||||
kTestPitchGains[0],
|
||||
475,
|
||||
-0.0904344f),
|
||||
std::make_tuple(kTestPitchPeriods[1],
|
||||
kTestPitchPeriods[0],
|
||||
kTestPitchGains[1],
|
||||
475,
|
||||
-0.0904344f),
|
||||
std::make_tuple(kTestPitchPeriods[1],
|
||||
kTestPitchPeriods[1],
|
||||
kTestPitchGains[0],
|
||||
475,
|
||||
-0.0904344f),
|
||||
std::make_tuple(kTestPitchPeriods[1],
|
||||
kTestPitchPeriods[1],
|
||||
kTestPitchGains[1],
|
||||
475,
|
||||
-0.0904344f)));
|
||||
|
||||
} // namespace test
|
||||
} // namespace rnn_vad
|
||||
|
||||
@ -1109,12 +1109,12 @@ TEST_P(AudioProcessingImplLockTest, LockTest) {
|
||||
}
|
||||
|
||||
// Instantiate tests from the extreme test configuration set.
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
DISABLED_AudioProcessingImplLockExtensive,
|
||||
AudioProcessingImplLockTest,
|
||||
::testing::ValuesIn(TestConfig::GenerateExtensiveTestConfigs()));
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
AudioProcessingImplLockBrief,
|
||||
AudioProcessingImplLockTest,
|
||||
::testing::ValuesIn(TestConfig::GenerateBriefTestConfigs()));
|
||||
|
||||
@ -621,7 +621,7 @@ TEST_P(CallSimulator, DISABLED_ApiCallDurationTest) {
|
||||
EXPECT_TRUE(Run());
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
AudioProcessingPerformanceTest,
|
||||
CallSimulator,
|
||||
::testing::ValuesIn(SimulationConfig::GenerateSimulationConfigs()));
|
||||
|
||||
@ -2413,7 +2413,7 @@ TEST_P(AudioProcessingTest, Formats) {
|
||||
}
|
||||
|
||||
#if defined(WEBRTC_AUDIOPROC_FLOAT_PROFILE)
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
CommonFormats,
|
||||
AudioProcessingTest,
|
||||
testing::Values(std::make_tuple(48000, 48000, 48000, 48000, 0, 0),
|
||||
@ -2469,7 +2469,7 @@ INSTANTIATE_TEST_CASE_P(
|
||||
std::make_tuple(16000, 16000, 16000, 16000, 0, 0)));
|
||||
|
||||
#elif defined(WEBRTC_AUDIOPROC_FIXED_PROFILE)
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
CommonFormats,
|
||||
AudioProcessingTest,
|
||||
testing::Values(std::make_tuple(48000, 48000, 48000, 48000, 20, 0),
|
||||
|
||||
@ -227,7 +227,7 @@ TEST_P(FixedDigitalTest, CheckSaturationBehaviorWithLimiter) {
|
||||
}
|
||||
|
||||
static_assert(test::kLimiterMaxInputLevelDbFs < 10, "");
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
INSTANTIATE_TEST_SUITE_P(
|
||||
GainController2,
|
||||
FixedDigitalTest,
|
||||
::testing::Values(
|
||||
|
||||
Reference in New Issue
Block a user