• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2023 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include <string>
6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "third_party/fuzztest/src/fuzztest/fuzztest.h"
8 
StringsAlwaysOccupyPositiveSpace(std::string input)9 static void StringsAlwaysOccupyPositiveSpace(std::string input) {
10   EXPECT_TRUE(input.size() >= 0);
11 }
12 
13 FUZZ_TEST(FuzzTestSmokeTest, StringsAlwaysOccupyPositiveSpace);
14 
15 // Define an empty test so that on platforms where `FUZZ_TEST` is compiled away,
16 // there exists at least one test to run. Otherwise, testing infrastructure
17 // may complain that there are no tests to run in the binary.
TEST(FuzzTestSmokeTest,Nop)18 TEST(FuzzTestSmokeTest, Nop) {}
19