OLD | NEW |
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 Loading... |
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 Loading... |
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: |
OLD | NEW |