提交 3a781eb7 编写于 作者: L Liu Jiaming 提交者: Jiangtao Hu

fix misleading component testcase names

上级 d7b82099
......@@ -67,7 +67,7 @@ class Component_C : public Component<M0> {
bool Proc(const std::shared_ptr<M0> &) { return ret_proc; }
};
TEST(TimerComponent, init) {
TEST(CommonComponent, init) {
ret_proc = true;
ret_init = true;
apollo::cyber::proto::ComponentConfig compcfg;
......@@ -102,7 +102,7 @@ TEST(TimerComponent, init) {
EXPECT_TRUE(comA->Process(msg_str1, msg_str2, msg_str3, msg_str4));
}
TEST(TimerComponentFail, init) {
TEST(CommonComponentFail, init) {
ret_proc = false;
ret_init = false;
apollo::cyber::proto::ComponentConfig compcfg;
......@@ -121,14 +121,16 @@ TEST(TimerComponentFail, init) {
compcfg.set_name("perception2_f");
apollo::cyber::proto::ReaderOption *read_opt2 = compcfg.add_readers();
read_opt2->set_channel("/driver/channel");
read_opt2->set_channel("/driver/channel1");
auto comB = std::make_shared<Component_B<RawMessage, RawMessage>>();
EXPECT_FALSE(comB->Initialize(compcfg));
EXPECT_FALSE(comB->Process(msg_str1, msg_str2));
compcfg.set_name("perception3_F");
compcfg.set_name("perception3_f");
apollo::cyber::proto::ReaderOption *read_opt3 = compcfg.add_readers();
read_opt3->set_channel("/driver/channel");
read_opt3->set_channel("/driver/channel2");
apollo::cyber::proto::ReaderOption *read_opt4 = compcfg.add_readers();
read_opt4->set_channel("/driver/channel3");
auto comA = std::make_shared<
Component_A<RawMessage, RawMessage, RawMessage, RawMessage>>();
EXPECT_FALSE(comA->Initialize(compcfg));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册