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

Side by Side Diff: tests/scm_unittest.py

Issue 796053002: Revert of Make gclient ready for the Blink (DEPS to main project) transition (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years 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 | « tests/gclient_smoketest.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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 scm.py.""" 6 """Unit tests for scm.py."""
7 7
8 import logging 8 import logging
9 import os 9 import os
10 import sys 10 import sys
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 self.compareMembers(scm, members) 70 self.compareMembers(scm, members)
71 71
72 72
73 class GitWrapperTestCase(BaseSCMTestCase): 73 class GitWrapperTestCase(BaseSCMTestCase):
74 def testMembersChanged(self): 74 def testMembersChanged(self):
75 members = [ 75 members = [
76 'ApplyEnvVars', 76 'ApplyEnvVars',
77 'AssertVersion', 77 'AssertVersion',
78 'Capture', 78 'Capture',
79 'CaptureStatus', 79 'CaptureStatus',
80 'CleanupDir',
81 'current_version', 80 'current_version',
82 'FetchUpstreamTuple', 81 'FetchUpstreamTuple',
83 'GenerateDiff', 82 'GenerateDiff',
84 'GetBlessedSha1ForSvnRev', 83 'GetBlessedSha1ForSvnRev',
85 'GetBranch', 84 'GetBranch',
86 'GetBranchRef', 85 'GetBranchRef',
87 'GetCheckoutRoot', 86 'GetCheckoutRoot',
88 'GetDifferentFiles', 87 'GetDifferentFiles',
89 'GetEmail', 88 'GetEmail',
90 'GetGitDir', 89 'GetGitDir',
91 'GetGitSvnHeadRev', 90 'GetGitSvnHeadRev',
92 'GetPatchName', 91 'GetPatchName',
93 'GetSha1ForSvnRev', 92 'GetSha1ForSvnRev',
94 'GetSVNBranch', 93 'GetSVNBranch',
95 'GetUpstreamBranch', 94 'GetUpstreamBranch',
96 'IsDirectoryVersioned',
97 'IsGitSvn', 95 'IsGitSvn',
98 'IsInsideWorkTree', 96 'IsInsideWorkTree',
99 'IsValidRevision', 97 'IsValidRevision',
100 'IsWorkTreeDirty', 98 'IsWorkTreeDirty',
101 'MatchSvnGlob', 99 'MatchSvnGlob',
102 'ParseGitSvnSha1', 100 'ParseGitSvnSha1',
103 'RefToRemoteRef', 101 'RefToRemoteRef',
104 'ShortBranchName', 102 'ShortBranchName',
105 ] 103 ]
106 # If this test fails, you should add the relevant test. 104 # If this test fails, you should add the relevant test.
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 # Asserting the tree is not sufficient, svn status must come out clear too. 527 # Asserting the tree is not sufficient, svn status must come out clear too.
530 self.assertEquals('', self._capture(['status'])) 528 self.assertEquals('', self._capture(['status']))
531 529
532 530
533 if __name__ == '__main__': 531 if __name__ == '__main__':
534 if '-v' in sys.argv: 532 if '-v' in sys.argv:
535 logging.basicConfig(level=logging.DEBUG) 533 logging.basicConfig(level=logging.DEBUG)
536 unittest.main() 534 unittest.main()
537 535
538 # vim: ts=2:sw=2:tw=80:et: 536 # vim: ts=2:sw=2:tw=80:et:
OLDNEW
« no previous file with comments | « tests/gclient_smoketest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698