F´ Flight Software - C/C++ Documentation NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ComponentTest.hpp
Go to the documentation of this file.
1// ======================================================================
2// \title ComponentTest.hpp
3// \author T. Chieu
4// \brief hpp file for component test classes
5//
6// \copyright
7// Copyright (C) 2009-2023 California Institute of Technology.
8// ALL RIGHTS RESERVED. United States Government Sponsorship
9// acknowledged.
10//
11// ======================================================================
12
13#ifndef FPP_TEST_COMPONENT_TEST_HPP
14#define FPP_TEST_COMPONENT_TEST_HPP
15
16#include "test/ut/Tester.hpp"
17
18#include "gtest/gtest.h"
19
20template <typename FormalParamType>
21class ComponentCommandTest : public ::testing::Test {
22protected:
23 Tester tester;
24 FormalParamType data;
25};
26
28
30 this->tester.testCommand(0, this->data);
31}
32
34 CommandTest
35);
36
37template <typename FormalParamType>
38class ComponentAsyncCommandTest : public ::testing::Test {
39protected:
40 Tester tester;
41 FormalParamType data;
42};
43
45
47 this->tester.testAsyncCommand(0, this->data);
48}
49
51 AsyncCommandTest
52);
53
54template <typename FormalParamType>
55class ComponentEventTest : public ::testing::Test {
56protected:
57 Tester tester;
58 FormalParamType data;
59};
60
62
64 this->tester.connectTimeGetOut();
65 this->tester.testEvent(0, this->data);
66}
67
69 EventTest
70);
71
72template <typename FormalParamType>
73class ComponentTelemetryTest : public ::testing::Test {
74protected:
75 Tester tester;
76 FormalParamType data;
77};
78
80
82 this->tester.connectTimeGetOut();
83 this->tester.testTelemetry(0, this->data);
84}
85
87 TelemetryTest
88);
89
90template <typename FormalParamType>
91class ComponentParamCommandTest : public ::testing::Test {
92protected:
93 Tester tester;
94 FormalParamType data;
95};
96
98
100 this->tester.testParamCommand(0, this->data);
101}
102
104 ParamTest
105);
106
107template <typename FormalParamType>
108class ComponentInternalInterfaceTest : public ::testing::Test {
109protected:
110 Tester tester;
111 FormalParamType data;
112};
113
115
117 this->tester.testInternalInterface(this->data);
118}
119
121 InternalInterfaceTest);
122
123#endif
TYPED_TEST_P(ComponentCommandTest, CommandTest)
REGISTER_TYPED_TEST_SUITE_P(ComponentCommandTest, CommandTest)
TYPED_TEST_SUITE_P(ComponentCommandTest)
FormalParamType data
FormalParamType data