diff options
author | Steven Perron <stevenperron@google.com> | 2019-01-29 18:56:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-29 18:56:52 -0500 |
commit | 464111eaef80c4951e63473bc1c9e072f8d33588 (patch) | |
tree | 4f404e8dc9681ff71ca4367067679d173d66aef2 /test/opt/eliminate_dead_const_test.cpp | |
parent | 7f1a020abc82e73576147d344607034825bea18a (diff) | |
download | spirv-tools-464111eaef80c4951e63473bc1c9e072f8d33588.tar.gz |
Remove use of deprecated googletest macro (#2286)
* Remove use of deprecated googletest macro
INSTANTIATE_TEST_CASE_P has been deprecated. We need to use
INSTANTIATE_TEST_SUITE_P instead.
* Remove extra commas from test suites.
Diffstat (limited to 'test/opt/eliminate_dead_const_test.cpp')
-rw-r--r-- | test/opt/eliminate_dead_const_test.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/opt/eliminate_dead_const_test.cpp b/test/opt/eliminate_dead_const_test.cpp index 7fac866c..59f06f9f 100644 --- a/test/opt/eliminate_dead_const_test.cpp +++ b/test/opt/eliminate_dead_const_test.cpp @@ -197,7 +197,7 @@ TEST_P(EliminateDeadConstantTest, Custom) { assembly_with_dead_const, expected, /* skip_nop = */ true); } -INSTANTIATE_TEST_CASE_P( +INSTANTIATE_TEST_SUITE_P( ScalarTypeConstants, EliminateDeadConstantTest, ::testing::ValuesIn(std::vector<EliminateDeadConstantTestCase>({ // clang-format off @@ -265,7 +265,7 @@ INSTANTIATE_TEST_CASE_P( // clang-format on }))); -INSTANTIATE_TEST_CASE_P( +INSTANTIATE_TEST_SUITE_P( VectorTypeConstants, EliminateDeadConstantTest, ::testing::ValuesIn(std::vector<EliminateDeadConstantTestCase>({ // clang-format off @@ -358,7 +358,7 @@ INSTANTIATE_TEST_CASE_P( // clang-format on }))); -INSTANTIATE_TEST_CASE_P( +INSTANTIATE_TEST_SUITE_P( StructTypeConstants, EliminateDeadConstantTest, ::testing::ValuesIn(std::vector<EliminateDeadConstantTestCase>({ // clang-format off @@ -485,7 +485,7 @@ INSTANTIATE_TEST_CASE_P( // clang-format on }))); -INSTANTIATE_TEST_CASE_P( +INSTANTIATE_TEST_SUITE_P( ScalarTypeSpecConstants, EliminateDeadConstantTest, ::testing::ValuesIn(std::vector<EliminateDeadConstantTestCase>({ // clang-format off @@ -522,7 +522,7 @@ INSTANTIATE_TEST_CASE_P( // clang-format on }))); -INSTANTIATE_TEST_CASE_P( +INSTANTIATE_TEST_SUITE_P( VectorTypeSpecConstants, EliminateDeadConstantTest, ::testing::ValuesIn(std::vector<EliminateDeadConstantTestCase>({ // clang-format off @@ -617,7 +617,7 @@ INSTANTIATE_TEST_CASE_P( // clang-format on }))); -INSTANTIATE_TEST_CASE_P( +INSTANTIATE_TEST_SUITE_P( SpecConstantOp, EliminateDeadConstantTest, ::testing::ValuesIn(std::vector<EliminateDeadConstantTestCase>({ // clang-format off @@ -768,7 +768,7 @@ INSTANTIATE_TEST_CASE_P( // clang-format on }))); -INSTANTIATE_TEST_CASE_P( +INSTANTIATE_TEST_SUITE_P( LongDefUseChain, EliminateDeadConstantTest, ::testing::ValuesIn(std::vector<EliminateDeadConstantTestCase>({ // clang-format off |