Macros | Functions
client_configuration_provider_test.cpp File Reference
#include <aws/core/client/ClientConfiguration.h>
#include <aws_common/sdk_utils/client_configuration_provider.h>
#include <aws_ros1_common/sdk_utils/ros1_node_parameter_reader.h>
#include <gtest/gtest.h>
#include <ros/ros.h>
Include dependency graph for client_configuration_provider_test.cpp:

Go to the source code of this file.

Macros

#define CLIENT_CONFIG_PREFIX   "aws_client_configuration"
 
#define USER_AGENT_SUFFIX   "/user_agent"
 

Functions

void InitializeNodeAndConfig (ros::NodeHandle &node, Aws::Client::ClientConfiguration &config)
 
int main (int argc, char **argv)
 
 TEST (DefaultClientConfigurationProvider, getClientConfiguration)
 
 TEST (DefaultClientConfigurationProvider, userAgentTest)
 

Macro Definition Documentation

#define CLIENT_CONFIG_PREFIX   "aws_client_configuration"

Definition at line 21 of file client_configuration_provider_test.cpp.

#define USER_AGENT_SUFFIX   "/user_agent"

Definition at line 22 of file client_configuration_provider_test.cpp.

Function Documentation

void InitializeNodeAndConfig ( ros::NodeHandle node,
Aws::Client::ClientConfiguration &  config 
)

Populates a ROS node and a client configuration with the same dummy values.

Parameters
node
config

Definition at line 29 of file client_configuration_provider_test.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 121 of file client_configuration_provider_test.cpp.

TEST ( DefaultClientConfigurationProvider  ,
getClientConfiguration   
)

Tests that GetClientConfiguration returns the expected ClientConfiguration object.

Definition at line 46 of file client_configuration_provider_test.cpp.

TEST ( DefaultClientConfigurationProvider  ,
userAgentTest   
)

Tests that the configuration provider sets userAgent correctly with the ROS distro & version information.

Definition at line 70 of file client_configuration_provider_test.cpp.



aws_ros1_common
Author(s): AWS RoboMaker
autogenerated on Thu Mar 4 2021 03:25:44