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

Side by Side Diff: net/data/update_net_gypi.py

Issue 2036033002: Add CertIssuerSourceAia: authorityInfoAccess fetching for CertPathBuilder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert-parsing-path-building
Patch Set: remove orphaned kw_args change, remove g_cur_path_id change from this cl Created 4 years, 6 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
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import os 5 import os
6 import re 6 import re
7 import StringIO 7 import StringIO
8 import sys 8 import sys
9 9
10 10
11 VARIABLE_PATTERN = re.compile("^(?P<indentation>\s*)'(?P<name>[^']*)':\s*\[$") 11 VARIABLE_PATTERN = re.compile("^(?P<indentation>\s*)'(?P<name>[^']*)':\s*\[$")
12 EXCLUSION_PATTERN = re.compile("^(?:README|OWNERS|.*\.(pyc?|sh|swp)|.*~)$") 12 EXCLUSION_PATTERN = re.compile("^(?:README|OWNERS|.*\.(pyc?|sh|swp)|.*~)$")
13 13
14 DATA_SOURCES_PATH_FOR_VARIABLES = { 14 DATA_SOURCES_PATH_FOR_VARIABLES = {
15 "net_test_support_data_sources": [ 15 "net_test_support_data_sources": [
16 "net/data/ssl/certificates", 16 "net/data/ssl/certificates",
17 ], 17 ],
18 "net_unittests_data_sources": [ 18 "net_unittests_data_sources": [
19 "net/data/cert_issuer_source_aia_unittest",
19 "net/data/cert_issuer_source_static_unittest", 20 "net/data/cert_issuer_source_static_unittest",
20 "net/data/certificate_policies_unittest", 21 "net/data/certificate_policies_unittest",
21 "net/data/name_constraints_unittest", 22 "net/data/name_constraints_unittest",
22 "net/data/parse_certificate_unittest", 23 "net/data/parse_certificate_unittest",
23 "net/data/parse_ocsp_unittest", 24 "net/data/parse_ocsp_unittest",
24 "net/data/test.html", 25 "net/data/test.html",
25 "net/data/url_request_unittest", 26 "net/data/url_request_unittest",
26 "net/data/verify_certificate_chain_unittest", 27 "net/data/verify_certificate_chain_unittest",
27 "net/data/verify_name_match_unittest/names", 28 "net/data/verify_name_match_unittest/names",
28 "net/data/verify_signed_data_unittest", 29 "net/data/verify_signed_data_unittest",
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 data_sources_for_variables = {} 132 data_sources_for_variables = {}
132 for variable in DATA_SOURCES_PATH_FOR_VARIABLES: 133 for variable in DATA_SOURCES_PATH_FOR_VARIABLES:
133 data_sources_for_variables[variable] = list_data_sources( 134 data_sources_for_variables[variable] = list_data_sources(
134 root_dir, DATA_SOURCES_PATH_FOR_VARIABLES[variable], EXCLUSION_PATTERN) 135 root_dir, DATA_SOURCES_PATH_FOR_VARIABLES[variable], EXCLUSION_PATTERN)
135 136
136 edit_file(net_gypi, root_dir, data_sources_for_variables) 137 edit_file(net_gypi, root_dir, data_sources_for_variables)
137 138
138 139
139 if __name__ == "__main__": 140 if __name__ == "__main__":
140 sys.exit(main(sys.argv[1:])) 141 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « net/data/cert_issuer_source_aia_unittest/target_two_aia.pem ('k') | net/data/verify_certificate_chain_unittest/common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698