chromium/testing/libfuzzer/tests/fuzztest_smoketest.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <string>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/fuzztest/src/fuzztest/fuzztest.h"

static void StringsAlwaysOccupyPositiveSpace(std::string input) {}

FUZZ_TEST(FuzzTestSmokeTest, StringsAlwaysOccupyPositiveSpace);

// Define an empty test so that on platforms where `FUZZ_TEST` is compiled away,
// there exists at least one test to run. Otherwise, testing infrastructure
// may complain that there are no tests to run in the binary.
TEST(FuzzTestSmokeTest, Nop) {}