ampproject: fix build (#11259)

Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
DavidKorczynski 2023-11-23 12:12:23 +00:00 committed by GitHub
parent 69ec65b482
commit 4c2b7c89bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 15 deletions

View File

@ -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"],
@ -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 @@