1cb93a386Sopenharmony_ci/* 2cb93a386Sopenharmony_ci * Copyright 2016 Google Inc. 3cb93a386Sopenharmony_ci * 4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be 5cb93a386Sopenharmony_ci * found in the LICENSE file. 6cb93a386Sopenharmony_ci */ 7cb93a386Sopenharmony_ci 8cb93a386Sopenharmony_ci#ifndef SkFuzzLogging_DEFINED 9cb93a386Sopenharmony_ci#define SkFuzzLogging_DEFINED 10cb93a386Sopenharmony_ci 11cb93a386Sopenharmony_ci// Utilities for Skia's fuzzer 12cb93a386Sopenharmony_ci 13cb93a386Sopenharmony_ci// When SK_FUZZ_LOGGING is defined SkDebugfs relevant to image filter fuzzing 14cb93a386Sopenharmony_ci// will be enabled. This allows the filter fuzzing code to include fuzzer 15cb93a386Sopenharmony_ci// failures based on the output logs. 16cb93a386Sopenharmony_ci// Define this flag in your SkUserConfig.h or in your Make/Build system. 17cb93a386Sopenharmony_ci#ifdef SK_FUZZ_LOGGING 18cb93a386Sopenharmony_ci #define SkFUZZF(args) SkDebugf("SkFUZZ: "); SkDebugf args 19cb93a386Sopenharmony_ci#else 20cb93a386Sopenharmony_ci #define SkFUZZF(args) 21cb93a386Sopenharmony_ci#endif 22cb93a386Sopenharmony_ci 23cb93a386Sopenharmony_ci#endif 24