blob: 5ba8d5f7ba41edeee606849a5bcb3587ac1794a6 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_TESTING_BLINK_FUZZER_TEST_SUPPORT_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_TESTING_BLINK_FUZZER_TEST_SUPPORT_H_
namespace blink {
// Instantiating BlinkFuzzerTestSupport will spin up an environment similar to
// webkit_unit_tests. It should be statically initialized and leaked in fuzzers.
class BlinkFuzzerTestSupport {
public:
// Use this constructor in LLVMFuzzerTestOneInput.
BlinkFuzzerTestSupport();
// Use this constructor in LLVMFuzzerInitialize only if argv is necessary.
BlinkFuzzerTestSupport(int argc, char** argv);
~BlinkFuzzerTestSupport();
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_TESTING_BLINK_FUZZER_TEST_SUPPORT_H_