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

Side by Side Diff: mojo/public/tools/mopy/gn_unittest.py

Issue 878933003: Move the apptest runner and parts of mopy to the public SDK. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « mojo/public/tools/mopy/gn.py ('k') | mojo/public/tools/mopy/gtest.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 itertools 5 import itertools
6 import sys 6 import sys
7 import unittest 7 import unittest
8 8
9 import mopy.gn as gn 9 import mopy.gn as gn
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 60
61 def _iterate_over_config(config): 61 def _iterate_over_config(config):
62 def product_to_dict(p): 62 def product_to_dict(p):
63 return dict(filter(lambda x: x[1] is not None, zip(config.keys(), p))) 63 return dict(filter(lambda x: x[1] is not None, zip(config.keys(), p)))
64 return itertools.imap(product_to_dict, itertools.product(*config.values())) 64 return itertools.imap(product_to_dict, itertools.product(*config.values()))
65 65
66 66
67 if __name__ == "__main__": 67 if __name__ == "__main__":
68 unittest.main() 68 unittest.main()
OLDNEW
« no previous file with comments | « mojo/public/tools/mopy/gn.py ('k') | mojo/public/tools/mopy/gtest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698