MOS Source Code
Loading...
Searching...
No Matches
enumsizes_intsize_unittests.cc
Go to the documentation of this file.
1
#include <stdio.h>
2
#include "enumsizes.pb.h"
3
#include "
unittests.h
"
4
5
extern
"C"
int
TestIntSize
() {
6
int
status = 0;
7
8
TEST
(
sizeof
(IntSizeInt8) ==
sizeof
(
uint8_t
));
9
TEST
(
sizeof
(IntSizeInt16) ==
sizeof
(
uint16_t
));
10
TEST
(
sizeof
(IntSizeInt32) ==
sizeof
(
uint32_t
));
11
TEST
(
sizeof
(IntSizeInt64) ==
sizeof
(
uint64_t
));
12
13
if
(status != 0) fprintf(
stdout
,
"\n\nSome tests FAILED!\n"
);
14
15
return
status;
16
}
TestIntSize
int TestIntSize()
Definition
enumsizes_intsize_unittests.cc:5
stdout
#define stdout
Definition
mos_stdio.h:31
uint16_t
unsigned short uint16_t
Definition
pb_syshdr.h:22
uint32_t
unsigned int uint32_t
Definition
pb_syshdr.h:24
uint64_t
unsigned long long uint64_t
Definition
pb_syshdr.h:26
uint8_t
unsigned char uint8_t
Definition
pb_syshdr.h:20
TEST
#define TEST(x)
Definition
test.h:3
unittests.h
libs
nanopb
nanopb
tests
enum_sizes
enumsizes_intsize_unittests.cc
Generated on Sun Sep 1 2024 18:22:52 for MOS Source Code by
1.12.0