Advanced tracing

This commit is contained in:
Pavel Kirienko
2015-05-10 19:22:03 +03:00
parent c49ee1c4d3
commit 10b5661da4
6 changed files with 120 additions and 30 deletions
@@ -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