mirror of
https://github.com/google/pebble.git
synced 2025-07-26 17:24:54 -04:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
19
third_party/nanopb/tests/fuzztest/flakystream.h
vendored
Normal file
19
third_party/nanopb/tests/fuzztest/flakystream.h
vendored
Normal file
|
@ -0,0 +1,19 @@
|
|||
/* This module implements a custom input stream that can be set to give IO error
|
||||
* at specific point. */
|
||||
|
||||
#ifndef FLAKYSTREAM_H
|
||||
#define FLAKYSTREAM_H
|
||||
|
||||
#include <pb_decode.h>
|
||||
|
||||
typedef struct {
|
||||
pb_istream_t stream;
|
||||
const uint8_t *buffer;
|
||||
size_t position;
|
||||
size_t msglen;
|
||||
size_t fail_after;
|
||||
} flakystream_t;
|
||||
|
||||
void flakystream_init(flakystream_t *stream, const uint8_t *buffer, size_t msglen, size_t fail_after);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue