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

Side by Side Diff: tests/gclient_test.py

Issue 1611009: Provide a way to name a solution as part of the config command. (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: Committed Created 10 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « gclient.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Unit tests for gclient.py.""" 6 """Unit tests for gclient.py."""
7 7
8 # Fixes include path. 8 # Fixes include path.
9 from super_mox import mox, IsOneOf, SuperMoxTestBase 9 from super_mox import mox, IsOneOf, SuperMoxTestBase
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 52
53 class GclientTestCase(GClientBaseTestCase): 53 class GclientTestCase(GClientBaseTestCase):
54 class OptionsObject(object): 54 class OptionsObject(object):
55 def __init__(self, test_case, verbose=False, spec=None, 55 def __init__(self, test_case, verbose=False, spec=None,
56 config_filename='a_file_name', 56 config_filename='a_file_name',
57 entries_filename='a_entry_file_name', 57 entries_filename='a_entry_file_name',
58 deps_file='a_deps_file_name', force=False, nohooks=False): 58 deps_file='a_deps_file_name', force=False, nohooks=False):
59 self.verbose = verbose 59 self.verbose = verbose
60 self.spec = spec 60 self.spec = spec
61 self.name = None
61 self.config_filename = config_filename 62 self.config_filename = config_filename
62 self.entries_filename = entries_filename 63 self.entries_filename = entries_filename
63 self.deps_file = deps_file 64 self.deps_file = deps_file
64 self.force = force 65 self.force = force
65 self.nohooks = nohooks 66 self.nohooks = nohooks
66 self.revisions = [] 67 self.revisions = []
67 self.manually_grab_svn_rev = True 68 self.manually_grab_svn_rev = True
68 self.deps_os = None 69 self.deps_os = None
69 self.head = False 70 self.head = False
70 71
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 pass 1051 pass
1051 def test_VarImpl(self): 1052 def test_VarImpl(self):
1052 pass 1053 pass
1053 1054
1054 1055
1055 if __name__ == '__main__': 1056 if __name__ == '__main__':
1056 import unittest 1057 import unittest
1057 unittest.main() 1058 unittest.main()
1058 1059
1059 # vim: ts=2:sw=2:tw=80:et: 1060 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « gclient.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698