#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>
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) | |
#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.
void InitializeNodeAndConfig | ( | ros::NodeHandle & | node, |
Aws::Client::ClientConfiguration & | config | ||
) |
Populates a ROS node and a client configuration with the same dummy values.
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.