Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(767)

Unified Diff: net/tools/transport_security_state_generator/BUILD.gn

Issue 2775053002: Add unittests for different transport security state generator components. (Closed)
Patch Set: fix a comment. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/BUILD.gn ('k') | net/tools/transport_security_state_generator/bit_writer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/transport_security_state_generator/BUILD.gn
diff --git a/net/tools/transport_security_state_generator/BUILD.gn b/net/tools/transport_security_state_generator/BUILD.gn
index 1af8b7ec26031e2265c80c19b0a261da5be2ec2d..05db192a5f2ebaf8ce5c2e1f4b15c3dea39056e7 100644
--- a/net/tools/transport_security_state_generator/BUILD.gn
+++ b/net/tools/transport_security_state_generator/BUILD.gn
@@ -4,7 +4,7 @@
assert(current_toolchain == host_toolchain)
-executable("transport_security_state_generator") {
+source_set("transport_security_state_generator_sources") {
sources = [
"bit_writer.cc",
"bit_writer.h",
@@ -22,7 +22,6 @@ executable("transport_security_state_generator") {
"spki_hash.h",
"transport_security_state_entry.cc",
"transport_security_state_entry.h",
- "transport_security_state_generator.cc",
"trie/trie_bit_buffer.cc",
"trie/trie_bit_buffer.h",
"trie/trie_writer.cc",
@@ -30,6 +29,34 @@ executable("transport_security_state_generator") {
]
deps = [
"//base",
+ "//third_party/boringssl",
+ ]
+}
+
+source_set("transport_security_state_generator_test_sources") {
+ testonly = true
+ sources = [
+ "bit_writer_unittest.cc",
+ "huffman/huffman_builder_unittest.cc",
+ "spki_hash_unittest.cc",
+ "trie/trie_bit_buffer_unittest.cc",
+ ]
+ deps = [
+ ":transport_security_state_generator_sources",
+ "//base",
+ "//base/test:test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+}
+
+executable("transport_security_state_generator") {
+ sources = [
+ "transport_security_state_generator.cc",
+ ]
+ deps = [
+ ":transport_security_state_generator_sources",
+ "//base",
"//crypto",
"//third_party/boringssl",
]
« no previous file with comments | « net/BUILD.gn ('k') | net/tools/transport_security_state_generator/bit_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698