F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
g
h
i
m
o
p
r
s
t
v
w
Variables
Typedefs
a
b
c
e
f
g
h
l
n
o
p
r
s
t
w
Enumerations
Enumerator
a
b
f
h
i
n
o
p
s
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
w
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
Functions
f
i
m
p
r
s
t
u
Variables
Typedefs
a
b
c
e
f
i
n
p
s
u
Enumerations
Enumerator
Macros
_
a
c
d
f
g
h
i
l
m
p
r
s
t
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title main.cpp
3
// \author T. Chieu
4
// \brief main cpp file for FPP struct tests
5
//
6
// \copyright
7
// Copyright (C) 2009-2022 California Institute of Technology.
8
// ALL RIGHTS RESERVED. United States Government Sponsorship
9
// acknowledged.
10
//
11
// ======================================================================
12
13
#include "FppTest/struct/NonPrimitiveSerializableAc.hpp"
14
#include "FppTest/struct/MultiStringSerializableAc.hpp"
15
#include "
FppTest/typed_tests/StringTest.hpp
"
16
17
#include "STest/Random/Random.hpp"
18
#include "gtest/gtest.h"
19
20
// Instantiate string tests for structs
21
using
StringTestImplementations
= ::testing::Types<
22
NonPrimitive::StringSize80,
23
MultiString::StringSize50,
24
MultiString::StringSize60,
25
MultiString::StringSize80
26
>;
27
INSTANTIATE_TYPED_TEST_SUITE_P
(Struct,
StringTest
,
StringTestImplementations
);
28
29
template
<>
30
U32 FppTest::String::getSize<MultiString::StringSize50>() {
31
return
50;
32
}
33
34
template
<>
35
U32 FppTest::String::getSize<MultiString::StringSize60>() {
36
return
60;
37
}
38
39
int
main
(
int
argc,
char
* argv[]) {
40
::testing::InitGoogleTest(&argc, argv);
41
STest::Random::seed();
42
43
return
RUN_ALL_TESTS();
44
}
StringTest.hpp
main
int main(int argc, char *argv[])
Definition
main.cpp:141
INSTANTIATE_TYPED_TEST_SUITE_P
INSTANTIATE_TYPED_TEST_SUITE_P(FppTest, ArrayTest, ArrayTestImplementations)
StringTestImplementations
::testing::Types< String::StringSize80, String100::StringSize100 > StringTestImplementations
Definition
main.cpp:133
StringTest
Definition
StringTest.hpp:39
FppTest
struct
main.cpp
Generated by
1.9.7