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

Side by Side Diff: components/tools/metrics/count_ifdefs_unittest.py

Issue 12782019: Move browser_components_metrics.py into a subdirectory of tools/metrics/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move files to //compontents/tools/metrics Created 7 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 | « components/tools/metrics/count_ifdefs.py ('k') | components/tools/metrics/testdata/foo.cc » ('j') | 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 """Tests for count_ifdefs. 6 """Tests for count_ifdefs.
7 """ 7 """
8 8
9 import os 9 import os
10 import unittest 10 import unittest
(...skipping 10 matching lines...) Expand all
21 count = count_ifdefs.CountIfdefs('OS_[A-Z]+', self.root) 21 count = count_ifdefs.CountIfdefs('OS_[A-Z]+', self.root)
22 self.failUnless(count == 6) 22 self.failUnless(count == 6)
23 23
24 def testSkipTests(self): 24 def testSkipTests(self):
25 count = count_ifdefs.CountIfdefs('OS_[A-Z]+', self.root, True) 25 count = count_ifdefs.CountIfdefs('OS_[A-Z]+', self.root, True)
26 self.failUnless(count == 4) 26 self.failUnless(count == 4)
27 27
28 28
29 if __name__ == '__main__': 29 if __name__ == '__main__':
30 unittest.main() 30 unittest.main()
OLDNEW
« no previous file with comments | « components/tools/metrics/count_ifdefs.py ('k') | components/tools/metrics/testdata/foo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698