From 1504463fa78073ff507d62bc0bcc2492db956917 Mon Sep 17 00:00:00 2001 From: TaikiYamada4 Date: Wed, 20 Nov 2024 14:33:35 +0900 Subject: [PATCH] Added autoware namespace to test codes Signed-off-by: TaikiYamada4 --- ...ing_regulatory_elements_for_crosswalks.cpp | 8 +++---- ...ing_regulatory_elements_for_stop_lines.cpp | 10 ++++----- ...regulatory_elements_for_traffic_lights.cpp | 8 +++---- ...latory_elements_details_for_crosswalks.cpp | 22 +++++++++---------- ...ry_elements_details_for_traffic_lights.cpp | 12 +++++----- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_crosswalks.cpp b/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_crosswalks.cpp index 2e48df3b..b4c916c4 100644 --- a/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_crosswalks.cpp +++ b/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_crosswalks.cpp @@ -26,7 +26,7 @@ class TestMissingRegulatoryElementsForCrosswalks : public MapValidationTester TEST_F(TestMissingRegulatoryElementsForCrosswalks, ValidatorAvailability) // NOLINT for gtest { std::string expected_validator_name = - lanelet::validation::MissingRegulatoryElementsForCrosswalksValidator::name(); + lanelet::autoware::validation::MissingRegulatoryElementsForCrosswalksValidator::name(); lanelet::validation::Strings validators = lanelet::validation::availabeChecks(expected_validator_name); // cspell:disable-line @@ -40,7 +40,7 @@ TEST_F(TestMissingRegulatoryElementsForCrosswalks, MissingRegulatoryElement) // { load_target_map("crosswalk/crosswalk_without_regulatory_elements.osm"); - lanelet::validation::MissingRegulatoryElementsForCrosswalksValidator checker; + lanelet::autoware::validation::MissingRegulatoryElementsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -54,7 +54,7 @@ TEST_F(TestMissingRegulatoryElementsForCrosswalks, RegulatoryElementExists) // { load_target_map("crosswalk/crosswalk_with_regulatory_element.osm"); - lanelet::validation::MissingRegulatoryElementsForCrosswalksValidator checker; + lanelet::autoware::validation::MissingRegulatoryElementsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 0); @@ -64,7 +64,7 @@ TEST_F(TestMissingRegulatoryElementsForCrosswalks, SampleMap) // NOLINT for gte { load_target_map("sample_map.osm"); - lanelet::validation::MissingRegulatoryElementsForCrosswalksValidator checker; + lanelet::autoware::validation::MissingRegulatoryElementsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 0); diff --git a/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_stop_lines.cpp b/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_stop_lines.cpp index d073f3b7..f2b93590 100644 --- a/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_stop_lines.cpp +++ b/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_stop_lines.cpp @@ -26,7 +26,7 @@ class TestMissingRegulatoryElementsForStopLines : public MapValidationTester TEST_F(TestMissingRegulatoryElementsForStopLines, ValidatorAvailability) // NOLINT for gtest { std::string expected_validator_name = - lanelet::validation::MissingRegulatoryElementsForStopLinesValidator::name(); + lanelet::autoware::validation::MissingRegulatoryElementsForStopLinesValidator::name(); lanelet::validation::Strings validators = lanelet::validation::availabeChecks(expected_validator_name); // cspell:disable-line @@ -40,7 +40,7 @@ TEST_F(TestMissingRegulatoryElementsForStopLines, MissingRegulatoryElement) // { load_target_map("stop_line/stop_line_without_regulatory_elements.osm"); - lanelet::validation::MissingRegulatoryElementsForStopLinesValidator checker; + lanelet::autoware::validation::MissingRegulatoryElementsForStopLinesValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -54,7 +54,7 @@ TEST_F(TestMissingRegulatoryElementsForStopLines, TrafficSignRegulatoryElement) { load_target_map("stop_line/stop_line_with_traffic_sign.osm"); - lanelet::validation::MissingRegulatoryElementsForStopLinesValidator checker; + lanelet::autoware::validation::MissingRegulatoryElementsForStopLinesValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 0); @@ -64,7 +64,7 @@ TEST_F(TestMissingRegulatoryElementsForStopLines, RoadMarkingRegulatoryElement) { load_target_map("stop_line/stop_line_with_road_marking.osm"); - lanelet::validation::MissingRegulatoryElementsForStopLinesValidator checker; + lanelet::autoware::validation::MissingRegulatoryElementsForStopLinesValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 0); @@ -74,7 +74,7 @@ TEST_F(TestMissingRegulatoryElementsForStopLines, SampleMap) // NOLINT for gtes { load_target_map("sample_map.osm"); - lanelet::validation::MissingRegulatoryElementsForStopLinesValidator checker; + lanelet::autoware::validation::MissingRegulatoryElementsForStopLinesValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 0); diff --git a/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_traffic_lights.cpp b/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_traffic_lights.cpp index e5bfec89..38448e1a 100644 --- a/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_traffic_lights.cpp +++ b/map/autoware_lanelet2_map_validator/test/src/test_missing_regulatory_elements_for_traffic_lights.cpp @@ -26,7 +26,7 @@ class TestMissingRegulatoryElementsForTrafficLights : public MapValidationTester TEST_F(TestMissingRegulatoryElementsForTrafficLights, ValidatorAvailability) // NOLINT for gtest { std::string expected_validator_name = - lanelet::validation::MissingRegulatoryElementsForTrafficLightsValidator::name(); + lanelet::autoware::validation::MissingRegulatoryElementsForTrafficLightsValidator::name(); lanelet::validation::Strings validators = lanelet::validation::availabeChecks(expected_validator_name); // cspell:disable-line @@ -40,7 +40,7 @@ TEST_F(TestMissingRegulatoryElementsForTrafficLights, MissingRegulatoryElement) { load_target_map("traffic_light/traffic_light_without_regulatory_element.osm"); - lanelet::validation::MissingRegulatoryElementsForTrafficLightsValidator checker; + lanelet::autoware::validation::MissingRegulatoryElementsForTrafficLightsValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -54,7 +54,7 @@ TEST_F(TestMissingRegulatoryElementsForTrafficLights, RegulatoryElementExists) { load_target_map("traffic_light/traffic_light_with_regulatory_element.osm"); - lanelet::validation::MissingRegulatoryElementsForTrafficLightsValidator checker; + lanelet::autoware::validation::MissingRegulatoryElementsForTrafficLightsValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 0); @@ -64,7 +64,7 @@ TEST_F(TestMissingRegulatoryElementsForTrafficLights, SampleMap) // NOLINT for { load_target_map("sample_map.osm"); - lanelet::validation::MissingRegulatoryElementsForTrafficLightsValidator checker; + lanelet::autoware::validation::MissingRegulatoryElementsForTrafficLightsValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 0); diff --git a/map/autoware_lanelet2_map_validator/test/src/test_regulatory_elements_details_for_crosswalks.cpp b/map/autoware_lanelet2_map_validator/test/src/test_regulatory_elements_details_for_crosswalks.cpp index da779142..ea09b43d 100644 --- a/map/autoware_lanelet2_map_validator/test/src/test_regulatory_elements_details_for_crosswalks.cpp +++ b/map/autoware_lanelet2_map_validator/test/src/test_regulatory_elements_details_for_crosswalks.cpp @@ -26,7 +26,7 @@ class TestRegulatoryElementsDetailsForCrosswalks : public MapValidationTester TEST_F(TestRegulatoryElementsDetailsForCrosswalks, ValidatorAvailability) // NOLINT for gtest { std::string expected_validator_name = - lanelet::validation::RegulatoryElementsDetailsForCrosswalksValidator::name(); + lanelet::autoware::validation::RegulatoryElementsDetailsForCrosswalksValidator::name(); lanelet::validation::Strings validators = lanelet::validation::availabeChecks(expected_validator_name); // cspell:disable-line @@ -40,7 +40,7 @@ TEST_F(TestRegulatoryElementsDetailsForCrosswalks, WrongRefersType) // NOLINT f { load_target_map("crosswalk/crosswalk_with_wrong_refers_type.osm"); - lanelet::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -55,7 +55,7 @@ TEST_F(TestRegulatoryElementsDetailsForCrosswalks, WrongRefLineType) // NOLINT { load_target_map("crosswalk/crosswalk_with_wrong_ref_line_type.osm"); - lanelet::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -70,7 +70,7 @@ TEST_F(TestRegulatoryElementsDetailsForCrosswalks, WrongPolygonType) // NOLINT { load_target_map("crosswalk/crosswalk_with_wrong_polygon_type.osm"); - lanelet::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -86,7 +86,7 @@ TEST_F(TestRegulatoryElementsDetailsForCrosswalks, MissingPolygon) // NOLINT fo { load_target_map("crosswalk/crosswalk_without_polygon.osm"); - lanelet::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -101,7 +101,7 @@ TEST_F(TestRegulatoryElementsDetailsForCrosswalks, MultiplePolygon) // NOLINT f { load_target_map("crosswalk/crosswalk_with_multiple_polygons.osm"); - lanelet::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -116,7 +116,7 @@ TEST_F(TestRegulatoryElementsDetailsForCrosswalks, MissingRefLine) // NOLINT fo { load_target_map("crosswalk/crosswalk_without_stop_line.osm"); - lanelet::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -131,7 +131,7 @@ TEST_F(TestRegulatoryElementsDetailsForCrosswalks, MissingRefers) // NOLINT for { load_target_map("crosswalk/crosswalk_regulatory_element_without_refers.osm"); - lanelet::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -146,7 +146,7 @@ TEST_F(TestRegulatoryElementsDetailsForCrosswalks, MultipleRefers) // NOLINT fo { load_target_map("crosswalk/crosswalk_regulatory_element_with_multiple_refers.osm"); - lanelet::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -162,7 +162,7 @@ TEST_F(TestRegulatoryElementsDetailsForCrosswalks, CorrectDetails) // NOLINT fo { load_target_map("crosswalk/crosswalk_with_regulatory_element.osm"); - lanelet::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 0); @@ -172,7 +172,7 @@ TEST_F(TestRegulatoryElementsDetailsForCrosswalks, SampleMap) // NOLINT for gte { load_target_map("sample_map.osm"); - lanelet::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForCrosswalksValidator checker; const auto & issues = checker(*map_); uint64_t errors_and_warnings_count = 0; diff --git a/map/autoware_lanelet2_map_validator/test/src/test_regulatory_elements_details_for_traffic_lights.cpp b/map/autoware_lanelet2_map_validator/test/src/test_regulatory_elements_details_for_traffic_lights.cpp index 8bd2b730..554db9c2 100644 --- a/map/autoware_lanelet2_map_validator/test/src/test_regulatory_elements_details_for_traffic_lights.cpp +++ b/map/autoware_lanelet2_map_validator/test/src/test_regulatory_elements_details_for_traffic_lights.cpp @@ -26,7 +26,7 @@ class TestRegulatoryElementDetailsForTrafficLights : public MapValidationTester TEST_F(TestRegulatoryElementDetailsForTrafficLights, ValidatorAvailability) // NOLINT for gtest { std::string expected_validator_name = - lanelet::validation::RegulatoryElementsDetailsForTrafficLightsValidator::name(); + lanelet::autoware::validation::RegulatoryElementsDetailsForTrafficLightsValidator::name(); lanelet::validation::Strings validators = lanelet::validation::availabeChecks(expected_validator_name); // cspell:disable-line @@ -40,7 +40,7 @@ TEST_F(TestRegulatoryElementDetailsForTrafficLights, WrongRefersType) // NOLINT { load_target_map("traffic_light/traffic_light_with_wrong_refers_type.osm"); - lanelet::validation::RegulatoryElementsDetailsForTrafficLightsValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForTrafficLightsValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -56,7 +56,7 @@ TEST_F(TestRegulatoryElementDetailsForTrafficLights, WrongRefLineType) // NOLIN { load_target_map("traffic_light/traffic_light_with_wrong_ref_line_type.osm"); - lanelet::validation::RegulatoryElementsDetailsForTrafficLightsValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForTrafficLightsValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -94,7 +94,7 @@ TEST_F(TestRegulatoryElementDetailsForTrafficLights, MissingRefLine) // NOLINT { load_target_map("traffic_light/traffic_light_regulatory_element_without_ref_line.osm"); - lanelet::validation::RegulatoryElementsDetailsForTrafficLightsValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForTrafficLightsValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 1); @@ -109,7 +109,7 @@ TEST_F(TestRegulatoryElementDetailsForTrafficLights, CorrectDetails) // NOLINT { load_target_map("traffic_light/traffic_light_with_regulatory_element.osm"); - lanelet::validation::RegulatoryElementsDetailsForTrafficLightsValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForTrafficLightsValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 0); @@ -119,7 +119,7 @@ TEST_F(TestRegulatoryElementDetailsForTrafficLights, SampleMap) // NOLINT for g { load_target_map("sample_map.osm"); - lanelet::validation::RegulatoryElementsDetailsForTrafficLightsValidator checker; + lanelet::autoware::validation::RegulatoryElementsDetailsForTrafficLightsValidator checker; const auto & issues = checker(*map_); EXPECT_EQ(issues.size(), 0);