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

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

Issue 1849773002: Adding OCSP Verification Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix scoped_ptr. Created 4 years, 7 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/certificate_policies_unittest", 19 "net/data/certificate_policies_unittest",
20 "net/data/name_constraints_unittest", 20 "net/data/name_constraints_unittest",
21 "net/data/parse_certificate_unittest", 21 "net/data/parse_certificate_unittest",
22 "net/data/parse_ocsp_unittest", 22 "net/data/ocsp_unittest",
23 "net/data/test.html", 23 "net/data/test.html",
24 "net/data/url_request_unittest", 24 "net/data/url_request_unittest",
25 "net/data/verify_certificate_chain_unittest", 25 "net/data/verify_certificate_chain_unittest",
26 "net/data/verify_name_match_unittest/names", 26 "net/data/verify_name_match_unittest/names",
27 "net/data/verify_signed_data_unittest", 27 "net/data/verify_signed_data_unittest",
28 "net/third_party/nist-pkits/certs", 28 "net/third_party/nist-pkits/certs",
29 "net/third_party/nist-pkits/crls", 29 "net/third_party/nist-pkits/crls",
30 ], 30 ],
31 } 31 }
32 32
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 data_sources_for_variables = {} 130 data_sources_for_variables = {}
131 for variable in DATA_SOURCES_PATH_FOR_VARIABLES: 131 for variable in DATA_SOURCES_PATH_FOR_VARIABLES:
132 data_sources_for_variables[variable] = list_data_sources( 132 data_sources_for_variables[variable] = list_data_sources(
133 root_dir, DATA_SOURCES_PATH_FOR_VARIABLES[variable], EXCLUSION_PATTERN) 133 root_dir, DATA_SOURCES_PATH_FOR_VARIABLES[variable], EXCLUSION_PATTERN)
134 134
135 edit_file(net_gypi, root_dir, data_sources_for_variables) 135 edit_file(net_gypi, root_dir, data_sources_for_variables)
136 136
137 137
138 if __name__ == "__main__": 138 if __name__ == "__main__":
139 sys.exit(main(sys.argv[1:])) 139 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698