Apollo 11.0
自动驾驶开放平台
planning_test_base.h 文件参考
#include <memory>
#include <set>
#include <string>
#include "gtest/gtest.h"
#include "modules/planning/planning_component/on_lane_planning.h"
#include "modules/planning/planning_component/planning_base.h"
planning_test_base.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

类

class  apollo::planning::PlanningTestBase
 

命名空间

namespace  apollo
 class register implement
 
namespace  apollo::planning
 apollo::planning
 

宏定义

#define RUN_GOLDEN_TEST(sub_case_num)
 
#define RUN_GOLDEN_TEST_DECISION(sub_case_num)
 
#define TMAIN
 
#define ENABLE_RULE(RULE_ID)   this->rule_enabled_.emplace(RULE_ID)
 

函数

 apollo::planning::DECLARE_string (test_routing_response_file)
 
 apollo::planning::DECLARE_string (test_localization_file)
 
 apollo::planning::DECLARE_string (test_chassis_file)
 
 apollo::planning::DECLARE_string (test_data_dir)
 
 apollo::planning::DECLARE_string (test_prediction_file)
 
 apollo::planning::DECLARE_string (test_traffic_light_file)
 
 apollo::planning::DECLARE_string (test_relative_map_file)
 
 apollo::planning::DECLARE_string (test_previous_planning_file)
 

宏定义说明

◆ ENABLE_RULE

#define ENABLE_RULE (   RULE_ID)    this->rule_enabled_.emplace(RULE_ID)

在文件 planning_test_base.h 第 58 行定义.

◆ RUN_GOLDEN_TEST

#define RUN_GOLDEN_TEST (   sub_case_num)
值:
{ \
const ::testing::TestInfo* const test_info = \
::testing::UnitTest::GetInstance()->current_test_info(); \
bool no_trajectory_point = false; \
bool run_planning_success = \
RunPlanning(test_info->name(), sub_case_num, no_trajectory_point); \
EXPECT_TRUE(run_planning_success); \
}

在文件 planning_test_base.h 第 30 行定义.

31 { \
32 const ::testing::TestInfo* const test_info = \
33 ::testing::UnitTest::GetInstance()->current_test_info(); \
34 bool no_trajectory_point = false; \
35 bool run_planning_success = \
36 RunPlanning(test_info->name(), sub_case_num, no_trajectory_point); \
37 EXPECT_TRUE(run_planning_success); \
38 }

◆ RUN_GOLDEN_TEST_DECISION

#define RUN_GOLDEN_TEST_DECISION (   sub_case_num)
值:
{ \
const ::testing::TestInfo* const test_info = \
::testing::UnitTest::GetInstance()->current_test_info(); \
bool no_trajectory_point = true; \
bool run_planning_success = \
RunPlanning(test_info->name(), sub_case_num, no_trajectory_point); \
EXPECT_TRUE(run_planning_success); \
}

在文件 planning_test_base.h 第 40 行定义.

41 { \
42 const ::testing::TestInfo* const test_info = \
43 ::testing::UnitTest::GetInstance()->current_test_info(); \
44 bool no_trajectory_point = true; \
45 bool run_planning_success = \
46 RunPlanning(test_info->name(), sub_case_num, no_trajectory_point); \
47 EXPECT_TRUE(run_planning_success); \
48 }

◆ TMAIN

#define TMAIN
值:
int main(int argc, char** argv) { \
::apollo::cyber::Init("planning_test"); \
::testing::InitGoogleTest(&argc, argv); \
::google::ParseCommandLineFlags(&argc, &argv, true); \
return RUN_ALL_TESTS(); \
}
int main(int argc, char **argv)

在文件 planning_test_base.h 第 50 行定义.

51 { \
52 ::apollo::cyber::Init("planning_test"); \
53 ::testing::InitGoogleTest(&argc, argv); \
54 ::google::ParseCommandLineFlags(&argc, &argv, true); \
55 return RUN_ALL_TESTS(); \
56 }