chromium/third_party/fuzztest/src/fuzztest/internal/googletest_adaptor.cc


#include "./fuzztest/internal/googletest_adaptor.h"

#include <cstdlib>
#include <string>
#include <type_traits>
#include <utility>

#include "gtest/gtest.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "absl/strings/string_view.h"
#include "./fuzztest/internal/configuration.h"
#include "./fuzztest/internal/corpus_database.h"
#include "./fuzztest/internal/flag_name.h"
#include "./fuzztest/internal/io.h"
#include "./fuzztest/internal/registry.h"
#include "./fuzztest/internal/runtime.h"

namespace fuzztest::internal {

namespace {
template <typename T>
void RegisterFuzzTestAsGTest(int* argc, char*** argv, FuzzTest& test,
                             const Configuration& configuration,
                             absl::string_view suffix = "") {}

template <typename T>
void RegisterSeparateRegressionTestForEachCrashingInput(
    int* argc, char*** argv, FuzzTest& test,
    const Configuration& configuration) {}

template <typename T>
void RegisterTests(int* argc, char*** argv, FuzzTest& test,
                   const Configuration& configuration) {}

}  // namespace

void RegisterFuzzTestsAsGoogleTests(int* argc, char*** argv,
                                    const Configuration& configuration) {}

// A singleton validator class with Run() called when GoogleTest begins to run
// the tests.
class FuzzTestListingModeValidator {};

// The proxy GoogleTest listener that calls the validator, needed as a separate
// class since GoogleTest takes the life-time of the listener.
class ValidatorProxyListener : public testing::EmptyTestEventListener {};

void FuzzTestListingModeValidator::RegisterGoogleTestListener() {}

void SetFuzzTestListingModeValidatorForGoogleTest(bool listing_mode) {}

}  // namespace fuzztest::internal