Added workarounds for name clashing in generated messages

This commit is contained in:
Pavel Kirienko
2014-03-06 17:55:51 +04:00
parent c08aa34645
commit d470cf1fb4
5 changed files with 47 additions and 9 deletions
+1 -2
View File
@@ -9,6 +9,7 @@
#include <root_ns_a/ReportBackSoldier.hpp>
#include <root_ns_b/ServiceWithEmptyRequest.hpp>
#include <root_ns_b/ServiceWithEmptyResponse.hpp>
#include <root_ns_b/T.hpp>
TEST(Dsdl, EmptyServices)
@@ -92,13 +93,11 @@ TEST(Dsdl, Registration)
GlobalDataTypeRegistry::instance().getDataTypeIDMask(uavcan::DataTypeKindMessage, mask);
ASSERT_TRUE(mask[8]);
mask[8] = false;
ASSERT_FALSE(mask.any());
GlobalDataTypeRegistry::instance().getDataTypeIDMask(uavcan::DataTypeKindService, mask);
ASSERT_TRUE(mask[1]);
ASSERT_TRUE(mask[3]);
mask[1] = mask[3] = false;
ASSERT_FALSE(mask.any());
/*
* Reset