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

Side by Side Diff: net/http/transport_security_state_static_unittest.template

Issue 2680933009: Add unittests for HSTS decoding. (Closed)
Patch Set: Comment rsleevi. 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // This file is generated by net/tools/transport_security_state_generator/.
6 // See transport_security_state_static.template for more information on the data
7 // in this file.
8
9 #include <stdint.h>
10
11 #include "net/http/transport_security_state_source.h"
12
13 enum SecondLevelDomainName [[DOMAIN_IDS]];
14
15 [[SPKI_HASHES]]
16
17 static const char* const kExpectCTReportURIs[] = [[EXPECT_CT_REPORT_URIS]];
18
19 static const char* const kExpectStapleReportURIs[] = [[EXPECT_STAPLE_REPORT_URIS ]];
20
21 static const char* const kNoRejectedPublicKeys[] = {
22 NULL,
23 };
24
25 static const char kNoReportURI[] = "";
26
27 [[ACCEPTABLE_CERTS]]
28
29 static const struct net::TransportSecurityStateSource::Pinset kPinsets[] = [[PIN SETS]];
30
31 static const uint8_t kHSTSHuffmanTree[] = [[HUFFMAN_TREE]];
32
33 static const uint8_t kPreloadedHSTSData[] = [[HSTS_TRIE]];
34
35 static const unsigned kPreloadedHSTSBits = [[HSTS_TRIE_BITS]];
36 static const unsigned kHSTSRootPosition = [[HSTS_TRIE_ROOT]];
37
38 static const net::TransportSecurityStateSource kHSTSSource = {
39 kHSTSHuffmanTree,
40 sizeof(kHSTSHuffmanTree),
41 kPreloadedHSTSData,
42 kPreloadedHSTSBits,
43 kHSTSRootPosition,
44 kExpectCTReportURIs,
45 kExpectStapleReportURIs,
46 kPinsets,
47 arraysize(kPinsets)
48 };
OLDNEW
« no previous file with comments | « net/http/transport_security_state_static_unittest.pins ('k') | net/http/transport_security_state_static_unittest1.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698