blob: a5f0adc3b2f2eb934929743a52c28c0b56d6f187 [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 BlinkFuzzerTestSupport_h
#define BlinkFuzzerTestSupport_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 // BlinkFuzzerTestSupport_h