Optimized padding, added more sizeof() outputs

This commit is contained in:
Pavel Kirienko
2015-05-31 08:12:46 +03:00
parent 05099181e5
commit 28e82797c2
5 changed files with 22 additions and 2 deletions
+3
View File
@@ -144,6 +144,9 @@ TEST(ServiceServer, Empty)
uavcan::ServiceServer<root_ns_a::EmptyService, EmptyServerImpl::Binder> server(node);
std::cout << "sizeof(ServiceServer<root_ns_a::EmptyService, EmptyServerImpl::Binder>): "
<< sizeof(uavcan::ServiceServer<root_ns_a::EmptyService, EmptyServerImpl::Binder>) << std::endl;
ASSERT_EQ(0, node.getDispatcher().getNumServiceRequestListeners());
ASSERT_GE(0, server.start(impl.bind()));
ASSERT_EQ(1, node.getDispatcher().getNumServiceRequestListeners());