Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 692700332
  • Loading branch information
xinhaoyuan authored and copybara-github committed Nov 5, 2024
1 parent 4e8f47b commit 069f6d1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions domain_tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ cc_test(
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/random",
"@com_google_fuzztest//fuzztest:domain_core",
"@com_google_fuzztest//fuzztest:table_of_recent_compares",
"@com_google_googletest//:gtest_main",
],
)
1 change: 1 addition & 0 deletions domain_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,6 @@ fuzztest_cc_test(
absl::flat_hash_set
absl::random_random
fuzztest::domain_core
fuzztest::table_of_recent_compares
GTest::gmock_main
)
3 changes: 3 additions & 0 deletions domain_tests/string_domains_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// Tests of character and string domains.

#include <cctype>
#include <cstdint>
#include <deque>
#include <optional>
#include <string>
Expand All @@ -27,6 +28,7 @@
#include "absl/random/random.h"
#include "./fuzztest/domain_core.h"
#include "./domain_tests/domain_testing.h"
#include "./fuzztest/internal/table_of_recent_compares.h"

namespace fuzztest {
namespace {
Expand All @@ -37,6 +39,7 @@ using ::testing::Each;
using ::testing::Eq;
using ::testing::Ge;
using ::testing::Gt;
using ::testing::HasSubstr;
using ::testing::IsTrue;
using ::testing::Lt;
using ::testing::Matches;
Expand Down
6 changes: 6 additions & 0 deletions e2e_tests/testdata/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,25 @@ cc_binary(
"fuzz_tests_for_functional_testing.cc",
"fuzz_tests_for_microbenchmarking.cc",
"fuzz_tests_using_googletest.cc",
"fuzz_tests_with_proto_inputs.cc",
],
deps = [
"@com_google_absl//absl/algorithm:container",
"@com_google_absl//absl/container:flat_hash_map",
"@com_google_absl//absl/container:flat_hash_set",
"@com_google_absl//absl/functional:function_ref",
"@com_google_absl//absl/log:check",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"@com_google_absl//absl/time",
"@com_google_absl//absl/types:span",
"@com_google_fuzztest//fuzztest",
"@com_google_fuzztest//fuzztest:fuzztest_gtest_main",
"@com_google_fuzztest//fuzztest:googletest_fixture_adapter",
"@com_google_fuzztest//fuzztest:logging",
"@com_google_fuzztest//fuzztest:test_protobuf_cc_proto",
"@com_google_protobuf//:protobuf",
"@com_googlesource_code_re2//:re2",
],
)

Expand Down
6 changes: 6 additions & 0 deletions e2e_tests/testdata/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,23 @@ add_executable(
fuzz_tests_for_functional_testing.cc
fuzz_tests_for_microbenchmarking.cc
fuzz_tests_using_googletest.cc
fuzz_tests_with_proto_inputs.cc
)
target_link_libraries(
fuzz_tests_for_functional_testing.stripped
PUBLIC
protobuf::libprotobuf
test_protobuf
absl::check
absl::algorithm_container
absl::flat_hash_map
absl::flat_hash_set
absl::function_ref
absl::span
absl::str_format
absl::strings
absl::time
re2::re2
fuzztest_googletest_fixture_adapter
fuzztest_logging
)
Expand Down
5 changes: 5 additions & 0 deletions fuzztest/internal/domains/overlap_of_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
#include "./fuzztest/internal/status.h"
#include "./fuzztest/internal/type_support.h"

namespace fuzztest::internal_no_adl {
auto Utf8String();
} // namespace fuzztest::internal_no_adl

namespace fuzztest::internal {

template <typename... Inner>
Expand Down Expand Up @@ -183,6 +187,7 @@ class OverlapOfImpl

private:
friend class OverlapOfTestPeer;
friend auto internal_no_adl::Utf8String();

static constexpr size_t kNumDomains = sizeof...(Inner);
static_assert(kNumDomains > 1,
Expand Down

0 comments on commit 069f6d1

Please sign in to comment.