fuzztest.h (541B)
1 // Copyright (c) the JPEG XL Project Authors. All rights reserved. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 #ifndef LIB_JXL_FUZZTEST_H_ 7 #define LIB_JXL_FUZZTEST_H_ 8 9 #include "lib/jxl/base/compiler_specific.h" 10 11 #if !defined(FUZZ_TEST) 12 struct FuzzTestSink { 13 template <typename F> 14 FuzzTestSink WithSeeds(F /*f*/) { 15 return *this; 16 } 17 }; 18 #define FUZZ_TEST(A, B) \ 19 const JXL_MAYBE_UNUSED FuzzTestSink unused##A##B = FuzzTestSink() 20 #endif 21 22 #endif // LIB_JXL_FUZZTEST_H_