diff options
author | Mirko Bonadei <mbonadei@webrtc.org> | 2019-01-31 12:20:57 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-01-31 13:23:33 +0000 |
commit | c84f661b10ef4104ba28e27578b72a87ae1754ff (patch) | |
tree | cb0ec0ff1daec1d78b6ccddc951c3ef589a15390 /common_audio | |
parent | 12e5d392cc8fc0ba7a04587c190daa4232e412bb (diff) | |
download | webrtc-c84f661b10ef4104ba28e27578b72a87ae1754ff.tar.gz |
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}
Diffstat (limited to 'common_audio')
-rw-r--r-- | common_audio/real_fourier_unittest.cc | 2 | ||||
-rw-r--r-- | common_audio/resampler/push_sinc_resampler_unittest.cc | 2 | ||||
-rw-r--r-- | common_audio/resampler/sinc_resampler_unittest.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/common_audio/real_fourier_unittest.cc b/common_audio/real_fourier_unittest.cc index 132488747a..eac4fce42e 100644 --- a/common_audio/real_fourier_unittest.cc +++ b/common_audio/real_fourier_unittest.cc @@ -68,7 +68,7 @@ class RealFourierTest : public ::testing::Test { }; using FftTypes = ::testing::Types<RealFourierOoura>; -TYPED_TEST_CASE(RealFourierTest, FftTypes); +TYPED_TEST_SUITE(RealFourierTest, FftTypes); TYPED_TEST(RealFourierTest, SimpleForwardTransform) { this->real_buffer_[0] = 1.0f; diff --git a/common_audio/resampler/push_sinc_resampler_unittest.cc b/common_audio/resampler/push_sinc_resampler_unittest.cc index 6d15a40495..ee111c4c6a 100644 --- a/common_audio/resampler/push_sinc_resampler_unittest.cc +++ b/common_audio/resampler/push_sinc_resampler_unittest.cc @@ -255,7 +255,7 @@ TEST_P(PushSincResamplerTest, ResampleFloat) { // Thresholds chosen arbitrarily based on what each resampling reported during // testing. All thresholds are in dbFS, http://en.wikipedia.org/wiki/DBFS. -INSTANTIATE_TEST_CASE_P( +INSTANTIATE_TEST_SUITE_P( PushSincResamplerTest, PushSincResamplerTest, ::testing::Values( diff --git a/common_audio/resampler/sinc_resampler_unittest.cc b/common_audio/resampler/sinc_resampler_unittest.cc index 3e0b84b091..3aedaccd56 100644 --- a/common_audio/resampler/sinc_resampler_unittest.cc +++ b/common_audio/resampler/sinc_resampler_unittest.cc @@ -340,7 +340,7 @@ static const double kResamplingRMSError = -14.58; // Thresholds chosen arbitrarily based on what each resampling reported during // testing. All thresholds are in dbFS, http://en.wikipedia.org/wiki/DBFS. -INSTANTIATE_TEST_CASE_P( +INSTANTIATE_TEST_SUITE_P( SincResamplerTest, SincResamplerTest, testing::Values( |