Skip to content

Commit

Permalink
ampproject: fix build (#11259)
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <[email protected]>
  • Loading branch information
DavidKorczynski authored Nov 23, 2023
1 parent 69ec65b commit 4c2b7c8
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions projects/ampproject/fuzz_patch.diff
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
diff --git a/validator/WORKSPACE b/validator/WORKSPACE
index 6c84b0df12..71b0c4f670 100644
index 0510b05..26e878c 100644
--- a/validator/WORKSPACE
+++ b/validator/WORKSPACE
@@ -39,6 +39,13 @@ http_archive(
urls = ["https://github.com/google/re2/archive/d826d9fcb68c62996c1b7c0a45d604e22d814952.zip"],
@@ -101,3 +101,10 @@ local_repository(
name = "amphtml-extensions",
path = "../extensions",
)
+
+http_archive(
+ name = "com_google_fuzztest",
+ sha256 = "c75f224b34c3c62ee901381fb743f6326f7b91caae0ceb8fe62f3fd36f187627",
+ strip_prefix = "fuzztest-58b4e7065924f1a284952b84ea827ce35a87e4dc",
+ urls = ["https://github.com/google/fuzztest/archive/58b4e7065924f1a284952b84ea827ce35a87e4dc.zip"],
+)
+
# rules_cc defines rules for generating C++ code from Protocol Buffers.
http_archive(
name = "rules_cc",
diff --git a/validator/cpp/htmlparser/BUILD b/validator/cpp/htmlparser/BUILD
index 78de292015..84fe1cc250 100644
index 3d31520..41bfd93 100644
--- a/validator/cpp/htmlparser/BUILD
+++ b/validator/cpp/htmlparser/BUILD
@@ -372,6 +372,17 @@ cc_test(
@@ -555,3 +555,15 @@ cc_test(
"@com_google_absl//absl/flags:flag",
],
)
+
+cc_test(
+ name = "parser_fuzz_test",
+ srcs = ["parser_fuzz_test.cc"],
Expand All @@ -35,12 +33,9 @@ index 78de292015..84fe1cc250 100644
+ ],
+)
+
# Renders a node tree to html string.
cc_library(
name = "renderer",
diff --git a/validator/cpp/htmlparser/parser_fuzz_test.cc b/validator/cpp/htmlparser/parser_fuzz_test.cc
new file mode 100644
index 0000000000..2ad7194c22
index 0000000..2ad7194
--- /dev/null
+++ b/validator/cpp/htmlparser/parser_fuzz_test.cc
@@ -0,0 +1,10 @@
Expand Down

0 comments on commit 4c2b7c8

Please sign in to comment.