blob: 48d9570d7f3517d9271931198410a2f2d959ee64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <pb_decode.h>
#include <unittests.h>
#include <malloc_wrappers.h>
#include "repro.pb.h"
int main() {
const uint8_t data[] = {0x08, 0x08, 0x2d};
int status = 0;
Repro repro = Repro_init_zero;
pb_istream_t stream = pb_istream_from_buffer(data, sizeof(data));
TEST(!pb_decode(&stream, Repro_fields, &repro));
TEST(get_alloc_count() == 0);
return status;
}
|