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

Unified Diff: Source/bindings/scripts/compute_interfaces_info_individual.py

Issue 301743008: Update run-bindings-tests per compute_interfaces_info split (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleaner Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/bindings/scripts/compute_interfaces_info_overall.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/scripts/compute_interfaces_info_individual.py
diff --git a/Source/bindings/scripts/compute_interfaces_info_individual.py b/Source/bindings/scripts/compute_interfaces_info_individual.py
index 81b7f5c06b80bfb18e3160206ac1652c651df156..65bfc1e85dd6d13cc185524055e8aa4fe27ff43e 100755
--- a/Source/bindings/scripts/compute_interfaces_info_individual.py
+++ b/Source/bindings/scripts/compute_interfaces_info_individual.py
@@ -100,7 +100,7 @@ def add_paths_to_partials_dict(partial_interface_name, full_path, this_include_p
paths_dict['include_paths'].append(this_include_path)
-def compute_individual_info(idl_filename):
+def compute_info_individual(idl_filename):
full_path = os.path.realpath(idl_filename)
idl_file_contents = get_file_contents(full_path)
@@ -145,6 +145,15 @@ def compute_individual_info(idl_filename):
}
+def info_individual():
+ """Returns info packaged as a dict."""
+ return {
+ 'interfaces_info': interfaces_info,
+ # Can't pickle defaultdict, convert to dict
+ 'partial_interface_files': dict(partial_interface_files),
+ }
+
+
################################################################################
def main():
@@ -163,14 +172,10 @@ def main():
# Information is stored in global variables interfaces_info and
# partial_interface_files.
for idl_filename in idl_files:
- compute_individual_info(idl_filename)
+ compute_info_individual(idl_filename)
write_pickle_file(options.interfaces_info_file,
- {
- 'interfaces_info': interfaces_info,
- # Can't pickle defaultdict, convert to dict
- 'partial_interface_files': dict(partial_interface_files),
- },
+ info_individual(),
options.write_file_only_if_changed)
« no previous file with comments | « no previous file | Source/bindings/scripts/compute_interfaces_info_overall.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698