81 OTHER_NODE_ID = TEST_NODE_ID + 0x100,
82 OTHER_NODE_ALIAS = 0x225,
89 ret.
id = OTHER_NODE_ID;
90 ret.
alias = OTHER_NODE_ALIAS;
103 otherIfCan_->add_addressed_message_support();
104 otherNodeIf_ = otherIfCan_.get();
105 otherDatagramSupport_.reset(
107 otherNodeDatagram_ = otherDatagramSupport_.get();
111 otherNodeIf_ =
ifCan_.get();
112 otherNodeDatagram_ = &datagram_support_;
115 otherNodeIf_->
local_aliases()->add(OTHER_NODE_ID, OTHER_NODE_ALIAS);
117 expect_packet(
":X19100225N02010D000103;");
118 otherNode_.reset(
new DefaultNode(otherNodeIf_, OTHER_NODE_ID));
127 expect_packet(
":X1070222AN02010D000103;");
128 expect_packet(
":X10701225N02010D000103;");
133 std::unique_ptr<DefaultNode> otherNode_;
135 std::unique_ptr<IfCan> otherIfCan_;
137 std::unique_ptr<CanDatagramService> otherDatagramSupport_;
Executor< 1 > g_executor
Global executor thread for tests.
void run_x(std::function< void()> fn)
Synchronously runs a function in the main executor.