#include <gtest/gtest.h>#include <gmock/gmock.h>#include <cloudwatch_logger/log_node_param_helper.h>#include <aws_common/sdk_utils/parameter_reader.h>#include <aws_common/sdk_utils/aws_error.h>
Go to the source code of this file.
Classes | |
| class | LogNodeParamHelperFixture |
| class | ParameterReaderMock |
Functions | |
| int | main (int argc, char **argv) |
| AwsError | MockReadParamAddStringToList (const ParameterPath ¶m_path, std::vector< std::string > &out) |
| TEST_F (LogNodeParamHelperFixture, TestReadPublishFrequency) | |
| TEST_F (LogNodeParamHelperFixture, TestReadLogGroup) | |
| TEST_F (LogNodeParamHelperFixture, TestReadLogStream) | |
| TEST_F (LogNodeParamHelperFixture, TestReadSubscribeToRosout) | |
| TEST_F (LogNodeParamHelperFixture, TestReadReadMinLogVerbosity) | |
| TEST_F (LogNodeParamHelperFixture, TestPublishTopicNames) | |
| TEST_F (LogNodeParamHelperFixture, TestReadIgnoreNodesSet) | |
| TEST_F (LogNodeParamHelperFixture, Test_Delete_Stale_Data_True) | |
| TEST_F (LogNodeParamHelperFixture, Test_Delete_Stale_Data_Not_Defined) | |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 403 of file log_node_param_helper_test.cpp.
| AwsError MockReadParamAddStringToList | ( | const ParameterPath & | param_path, |
| std::vector< std::string > & | out | ||
| ) |
Definition at line 289 of file log_node_param_helper_test.cpp.
| TEST_F | ( | LogNodeParamHelperFixture | , |
| TestReadPublishFrequency | |||
| ) |
Definition at line 51 of file log_node_param_helper_test.cpp.
| TEST_F | ( | LogNodeParamHelperFixture | , |
| TestReadLogGroup | |||
| ) |
Definition at line 83 of file log_node_param_helper_test.cpp.
| TEST_F | ( | LogNodeParamHelperFixture | , |
| TestReadLogStream | |||
| ) |
Definition at line 115 of file log_node_param_helper_test.cpp.
| TEST_F | ( | LogNodeParamHelperFixture | , |
| TestReadSubscribeToRosout | |||
| ) |
Definition at line 147 of file log_node_param_helper_test.cpp.
| TEST_F | ( | LogNodeParamHelperFixture | , |
| TestReadReadMinLogVerbosity | |||
| ) |
Definition at line 179 of file log_node_param_helper_test.cpp.
| TEST_F | ( | LogNodeParamHelperFixture | , |
| TestPublishTopicNames | |||
| ) |
Definition at line 254 of file log_node_param_helper_test.cpp.
| TEST_F | ( | LogNodeParamHelperFixture | , |
| TestReadIgnoreNodesSet | |||
| ) |
Definition at line 296 of file log_node_param_helper_test.cpp.
| TEST_F | ( | LogNodeParamHelperFixture | , |
| Test_Delete_Stale_Data_True | |||
| ) |
FileManagerStrategyOptions options defined with delete_stale_data set to true. First ReadParam call fails, therefore we expect options_.delete_stale_data set true->false. Second ReadParam call suceeds, therefore we expect options_.delete_stale_data set false->true. Third ReadParam call not found, therefore we expect options_.delete_stale_data set true->false.
Definition at line 328 of file log_node_param_helper_test.cpp.
| TEST_F | ( | LogNodeParamHelperFixture | , |
| Test_Delete_Stale_Data_Not_Defined | |||
| ) |
FileManagerStrategyOptions options defined with delete_stale_data not defined. We expect that when delete_stale_data is not defined that it will default to false. First ReadParam call suceeds, therefore we expect options_.delete_stale_data set false->true. Second ReadParam call fails, therefore we expect options_.delete_stale_data set true->false. Third ReadParam call suceeds, therefore we expect options_.delete_stale_data set false->true. Forth ReadParam call not found, therefore we expect options_.delete_stale_data set true->false.
Definition at line 365 of file log_node_param_helper_test.cpp.