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

Unified Diff: net/tools/transport_security_state_generator/resources/transport_security_state_static.template

Issue 2660793002: Add transport security state generator tests. (Closed)
Patch Set: export method for tests Created 3 years, 10 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
Index: net/tools/transport_security_state_generator/resources/transport_security_state_static.template
diff --git a/net/tools/transport_security_state_generator/resources/transport_security_state_static.template b/net/tools/transport_security_state_generator/resources/transport_security_state_static.template
index be15c42521814100dde8082aa3f8825c73980418..2310275893357e48830c15ab1ce0baafbb40ee0d 100644
--- a/net/tools/transport_security_state_generator/resources/transport_security_state_static.template
+++ b/net/tools/transport_security_state_generator/resources/transport_security_state_static.template
@@ -9,6 +9,8 @@
#include <stdint.h>
+#include "net/http/transport_security_state_structs.h"
+
enum SecondLevelDomainName [[DOMAIN_IDS]];
// These are SubjectPublicKeyInfo hashes for public key pinning. The
@@ -29,13 +31,7 @@ static const char kNoReportURI[] = "";
[[ACCEPTABLE_CERTS]]
-struct Pinset {
- const char* const* const accepted_pins;
- const char* const* const rejected_pins;
- const char* const report_uri;
-};
-
-static const struct Pinset kPinsets[] = [[PINSETS]];
+static const struct net::Pinset kPinsets[] = [[PINSETS]];
// kHSTSHuffmanTree describes a Huffman tree. The nodes of the tree are pairs
// of uint8s. The last node in the array is the root of the tree. Each pair is

Powered by Google App Engine
This is Rietveld 408576698