#include <aws/core/Aws.h>#include <aws/core/utils/logging/LogMacros.h>#include <gmock/gmock.h>#include <gtest/gtest.h>#include <ros/console.h>#include <ros/ros.h>#include <cloudwatch_metrics_collector/metrics_collector.hpp>#include <cloudwatch_metrics_common/metric_service.hpp>#include <cloudwatch_metrics_common/metric_batcher.h>#include <cloudwatch_metrics_common/metric_publisher.hpp>#include <cloudwatch_metrics_common/metric_service_factory.hpp>#include <ros_monitoring_msgs/MetricData.h>#include <cloudwatch_metrics_collector/metrics_collector_parameter_helper.hpp>#include <utility>
Go to the source code of this file.
Classes | |
| class | GetMetricDataEpochMillisFixture |
| struct | GetMetricDataEpochMillisTestDatum |
| class | MetricBatcherMock |
| class | MetricPublisherMock |
| class | MetricsCollectorFixture |
| class | MetricServiceFactoryMock |
| class | MetricServiceMock |
Functions | |
| INSTANTIATE_TEST_CASE_P (getMetricDataEpochMillisTest, GetMetricDataEpochMillisFixture,::testing::ValuesIn(getMetricDataEpochMillisTestData)) | |
| int | main (int argc, char **argv) |
| MATCHER_P (metricsAreEqual, toTest,"") | |
| TEST_F (MetricsCollectorFixture, Sanity) | |
| TEST_F (MetricsCollectorFixture, TestInitialize) | |
| TEST_F (MetricsCollectorFixture, timerCallsMetricManagerService) | |
| TEST_F (MetricsCollectorFixture, metricsRecordedNoDimension) | |
| TEST_F (MetricsCollectorFixture, metricRecordedWithDimension) | |
| TEST_F (MetricsCollectorFixture, metricRecordedWithDefaultDimensions) | |
| TEST_F (MetricsCollectorFixture, customTopicsListened) | |
| TEST_P (GetMetricDataEpochMillisFixture, getMetricDataEpochMillisTestOk) | |
Variables | |
| const GetMetricDataEpochMillisTestDatum | getMetricDataEpochMillisTestData [] |
| int | test_argc |
| char ** | test_argv |
| INSTANTIATE_TEST_CASE_P | ( | getMetricDataEpochMillisTest | , |
| GetMetricDataEpochMillisFixture | , | ||
| ::testing::ValuesIn(getMetricDataEpochMillisTestData) | |||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 403 of file cloudwatch_metrics_collector_test.cpp.
| MATCHER_P | ( | metricsAreEqual | , |
| toTest | , | ||
| "" | |||
| ) |
Helper matcher to ensure metric object data, received by the service, matches the data given to the collector.
Definition at line 241 of file cloudwatch_metrics_collector_test.cpp.
| TEST_F | ( | MetricsCollectorFixture | , |
| Sanity | |||
| ) |
Definition at line 176 of file cloudwatch_metrics_collector_test.cpp.
| TEST_F | ( | MetricsCollectorFixture | , |
| TestInitialize | |||
| ) |
Definition at line 181 of file cloudwatch_metrics_collector_test.cpp.
| TEST_F | ( | MetricsCollectorFixture | , |
| timerCallsMetricManagerService | |||
| ) |
Definition at line 213 of file cloudwatch_metrics_collector_test.cpp.
| TEST_F | ( | MetricsCollectorFixture | , |
| metricsRecordedNoDimension | |||
| ) |
Definition at line 250 of file cloudwatch_metrics_collector_test.cpp.
| TEST_F | ( | MetricsCollectorFixture | , |
| metricRecordedWithDimension | |||
| ) |
Definition at line 279 of file cloudwatch_metrics_collector_test.cpp.
| TEST_F | ( | MetricsCollectorFixture | , |
| metricRecordedWithDefaultDimensions | |||
| ) |
Definition at line 319 of file cloudwatch_metrics_collector_test.cpp.
| TEST_F | ( | MetricsCollectorFixture | , |
| customTopicsListened | |||
| ) |
Definition at line 357 of file cloudwatch_metrics_collector_test.cpp.
| TEST_P | ( | GetMetricDataEpochMillisFixture | , |
| getMetricDataEpochMillisTestOk | |||
| ) |
Definition at line 193 of file cloudwatch_metrics_collector_test.cpp.
| const GetMetricDataEpochMillisTestDatum getMetricDataEpochMillisTestData[] |
Definition at line 200 of file cloudwatch_metrics_collector_test.cpp.
| int test_argc |
Definition at line 39 of file cloudwatch_metrics_collector_test.cpp.
| char** test_argv |
Definition at line 40 of file cloudwatch_metrics_collector_test.cpp.