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 /video/end_to_end_tests/codec_tests.cc | |
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 'video/end_to_end_tests/codec_tests.cc')
-rw-r--r-- | video/end_to_end_tests/codec_tests.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/video/end_to_end_tests/codec_tests.cc b/video/end_to_end_tests/codec_tests.cc index 3c9b39cdc8..ed303ec12f 100644 --- a/video/end_to_end_tests/codec_tests.cc +++ b/video/end_to_end_tests/codec_tests.cc @@ -110,10 +110,11 @@ class CodecObserver : public test::EndToEndTest, int frame_counter_; }; -INSTANTIATE_TEST_CASE_P(GenericDescriptor, - CodecEndToEndTest, - ::testing::Values("WebRTC-GenericDescriptor/Disabled/", - "WebRTC-GenericDescriptor/Enabled/")); +INSTANTIATE_TEST_SUITE_P( + GenericDescriptor, + CodecEndToEndTest, + ::testing::Values("WebRTC-GenericDescriptor/Disabled/", + "WebRTC-GenericDescriptor/Enabled/")); TEST_P(CodecEndToEndTest, SendsAndReceivesVP8) { test::FunctionVideoEncoderFactory encoder_factory( @@ -229,7 +230,7 @@ class EndToEndTestH264 : public test::CallTest, test::ScopedFieldTrials field_trial_; }; -INSTANTIATE_TEST_CASE_P( +INSTANTIATE_TEST_SUITE_P( SpsPpsIdrIsKeyframe, EndToEndTestH264, ::testing::Values("WebRTC-SpsPpsIdrIsH264Keyframe/Disabled/", |