summaryrefslogtreecommitdiffstats
path: root/media/libdav1d/test/fuzztest/dav1d_fuzz_adapter.cpp
blob: 8f571143dd18fecf324230d77cc3269acdff8baf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "FuzzingInterface.h"

#define LLVMFuzzerInitialize Dav1dFuzzerInitialize
#define LLVMFuzzerTestOneInput Dav1dFuzzerTestOneInput

extern "C" {
#include "tests/libfuzzer/dav1d_fuzzer.c"
}

#undef LLVMFuzzerInitialize
#undef LLVMFuzzerTestOneInput

MOZ_FUZZING_INTERFACE_RAW(Dav1dFuzzerInitialize, Dav1dFuzzerTestOneInput,
                          Dav1dDecode);