refactor(gtest): TestCase->TestSuite

googletest deprecated the TEST_CASE terminology in
3a460a26b7a91abf87af7f31b93d29f930e25c82
This commit is contained in:
patrick96 2019-02-06 13:08:37 +01:00 committed by Patrick Ziegler
parent 9e595d388e
commit 6d3b323f16
3 changed files with 4 additions and 4 deletions

View File

@ -35,10 +35,10 @@ vector<pair<double, string>> to_pixels_with_offset_list = {
{0, "1%:-100"},
};
INSTANTIATE_TEST_CASE_P(NoOffset, GeomFormatToPixelsTest,
INSTANTIATE_TEST_SUITE_P(NoOffset, GeomFormatToPixelsTest,
::testing::ValuesIn(to_pixels_no_offset_list));
INSTANTIATE_TEST_CASE_P(WithOffset, GeomFormatToPixelsTest,
INSTANTIATE_TEST_SUITE_P(WithOffset, GeomFormatToPixelsTest,
::testing::ValuesIn(to_pixels_with_offset_list));
TEST_P(GeomFormatToPixelsTest, correctness) {

View File

@ -51,7 +51,7 @@ vector<pair<string, tuple<string, bool, int>>> get_label_text_list = {
{"abcdefgh", make_tuple("abcdefgh", true, 8)},
};
INSTANTIATE_TEST_CASE_P(Inst, GetLabelTextTest,
INSTANTIATE_TEST_SUITE_P(Inst, GetLabelTextTest,
::testing::ValuesIn(get_label_text_list));
TEST_P(GetLabelTextTest, correctness) {

View File

@ -27,7 +27,7 @@ vector<pair<string, string>> parse_action_cmd_list = {
{"\\:\\:\\:", ":\\:\\:\\::\\abc"},
};
INSTANTIATE_TEST_CASE_P(Inst, ParseActionCmd,
INSTANTIATE_TEST_SUITE_P(Inst, ParseActionCmd,
::testing::ValuesIn(parse_action_cmd_list));
TEST_P(ParseActionCmd, correctness) {