mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 10:03:33 +08:00
Advanced tracing
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <uavcan/protocol/dynamic_node_id_server/allocation_request_manager.hpp>
|
||||
#include <uavcan/protocol/dynamic_node_id_client.hpp>
|
||||
#include "event_tracer.hpp"
|
||||
#include "../helpers.hpp"
|
||||
|
||||
|
||||
@@ -88,10 +89,11 @@ TEST(dynamic_node_id_server_AllocationRequestManager, Basic)
|
||||
/*
|
||||
* Request manager initialization
|
||||
*/
|
||||
EventTracer tracer;
|
||||
AllocationRequestHandler handler;
|
||||
handler.can_followup = true;
|
||||
|
||||
AllocationRequestManager manager(nodes.a, handler);
|
||||
AllocationRequestManager manager(nodes.a, tracer, handler);
|
||||
|
||||
ASSERT_LE(0, manager.init());
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
TEST(DynamicNodeIDServer, EventCodeToString)
|
||||
{
|
||||
using namespace uavcan::dynamic_node_id_server::distributed;
|
||||
using namespace uavcan::dynamic_node_id_server;
|
||||
|
||||
// Simply checking some error codes
|
||||
|
||||
Reference in New Issue
Block a user