refactor(gtest): TestCase->TestSuite
googletest deprecated the TEST_CASE terminology in 3a460a26b7a91abf87af7f31b93d29f930e25c82
This commit is contained in:
parent
9e595d388e
commit
6d3b323f16
@ -35,10 +35,10 @@ vector<pair<double, string>> to_pixels_with_offset_list = {
|
|||||||
{0, "1%:-100"},
|
{0, "1%:-100"},
|
||||||
};
|
};
|
||||||
|
|
||||||
INSTANTIATE_TEST_CASE_P(NoOffset, GeomFormatToPixelsTest,
|
INSTANTIATE_TEST_SUITE_P(NoOffset, GeomFormatToPixelsTest,
|
||||||
::testing::ValuesIn(to_pixels_no_offset_list));
|
::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));
|
::testing::ValuesIn(to_pixels_with_offset_list));
|
||||||
|
|
||||||
TEST_P(GeomFormatToPixelsTest, correctness) {
|
TEST_P(GeomFormatToPixelsTest, correctness) {
|
||||||
|
@ -51,7 +51,7 @@ vector<pair<string, tuple<string, bool, int>>> get_label_text_list = {
|
|||||||
{"abcdefgh", make_tuple("abcdefgh", true, 8)},
|
{"abcdefgh", make_tuple("abcdefgh", true, 8)},
|
||||||
};
|
};
|
||||||
|
|
||||||
INSTANTIATE_TEST_CASE_P(Inst, GetLabelTextTest,
|
INSTANTIATE_TEST_SUITE_P(Inst, GetLabelTextTest,
|
||||||
::testing::ValuesIn(get_label_text_list));
|
::testing::ValuesIn(get_label_text_list));
|
||||||
|
|
||||||
TEST_P(GetLabelTextTest, correctness) {
|
TEST_P(GetLabelTextTest, correctness) {
|
||||||
|
@ -27,7 +27,7 @@ vector<pair<string, string>> parse_action_cmd_list = {
|
|||||||
{"\\:\\:\\:", ":\\:\\:\\::\\abc"},
|
{"\\:\\:\\:", ":\\:\\:\\::\\abc"},
|
||||||
};
|
};
|
||||||
|
|
||||||
INSTANTIATE_TEST_CASE_P(Inst, ParseActionCmd,
|
INSTANTIATE_TEST_SUITE_P(Inst, ParseActionCmd,
|
||||||
::testing::ValuesIn(parse_action_cmd_list));
|
::testing::ValuesIn(parse_action_cmd_list));
|
||||||
|
|
||||||
TEST_P(ParseActionCmd, correctness) {
|
TEST_P(ParseActionCmd, correctness) {
|
||||||
|
Loading…
Reference in New Issue
Block a user