Classes | Functions
service_client.cpp File Reference
#include <gtest/gtest.h>
#include <uavcan/node/service_client.hpp>
#include <uavcan/node/service_server.hpp>
#include <uavcan/util/method_binder.hpp>
#include <uavcan/protocol/RestartNode.hpp>
#include <uavcan/protocol/GetDataTypeInfo.hpp>
#include <root_ns_a/StringService.hpp>
#include <root_ns_a/EmptyService.hpp>
#include <queue>
#include <sstream>
#include "test_node.hpp"
Include dependency graph for service_client.cpp:

Go to the source code of this file.

Classes

struct  ServiceCallResultHandler< DataType >
 

Functions

static void emptyServiceServerCallback (const uavcan::ReceivedDataStructure< root_ns_a::EmptyService::Request > &, uavcan::ServiceResponseDataStructure< root_ns_a::EmptyService::Response > &)
 
static void rejectingStringServiceServerCallback (const uavcan::ReceivedDataStructure< root_ns_a::StringService::Request > &req, uavcan::ServiceResponseDataStructure< root_ns_a::StringService::Response > &rsp)
 
static void stringServiceServerCallback (const uavcan::ReceivedDataStructure< root_ns_a::StringService::Request > &req, uavcan::ServiceResponseDataStructure< root_ns_a::StringService::Response > &rsp)
 
 TEST (ServiceClient, Basic)
 
 TEST (ServiceClient, ConcurrentCalls)
 
 TEST (ServiceClient, Empty)
 
 TEST (ServiceClient, Priority)
 
 TEST (ServiceClient, Rejection)
 
 TEST (ServiceClient, Sizes)
 

Function Documentation

◆ emptyServiceServerCallback()

static void emptyServiceServerCallback ( const uavcan::ReceivedDataStructure< root_ns_a::EmptyService::Request > &  ,
uavcan::ServiceResponseDataStructure< root_ns_a::EmptyService::Response > &   
)
static

Definition at line 77 of file service_client.cpp.

◆ rejectingStringServiceServerCallback()

static void rejectingStringServiceServerCallback ( const uavcan::ReceivedDataStructure< root_ns_a::StringService::Request > &  req,
uavcan::ServiceResponseDataStructure< root_ns_a::StringService::Response > &  rsp 
)
static

Definition at line 66 of file service_client.cpp.

◆ stringServiceServerCallback()

static void stringServiceServerCallback ( const uavcan::ReceivedDataStructure< root_ns_a::StringService::Request > &  req,
uavcan::ServiceResponseDataStructure< root_ns_a::StringService::Response > &  rsp 
)
static

Definition at line 59 of file service_client.cpp.

◆ TEST() [1/6]

TEST ( ServiceClient  ,
Basic   
)

Definition at line 84 of file service_client.cpp.

◆ TEST() [2/6]

TEST ( ServiceClient  ,
ConcurrentCalls   
)

Definition at line 237 of file service_client.cpp.

◆ TEST() [3/6]

TEST ( ServiceClient  ,
Empty   
)

Definition at line 357 of file service_client.cpp.

◆ TEST() [4/6]

TEST ( ServiceClient  ,
Priority   
)

Definition at line 389 of file service_client.cpp.

◆ TEST() [5/6]

TEST ( ServiceClient  ,
Rejection   
)

Definition at line 193 of file service_client.cpp.

◆ TEST() [6/6]

TEST ( ServiceClient  ,
Sizes   
)

Definition at line 442 of file service_client.cpp.



uavcan_communicator
Author(s):
autogenerated on Fri Dec 13 2024 03:10:03