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

Side by Side Diff: tools/heapcheck/chrome_tests.py

Issue 10698146: Rename gfx_unittests with ui_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « no previous file | tools/valgrind/chrome_tests.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 #!/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 ''' Runs various chrome tests through heapcheck_test.py. 6 ''' Runs various chrome tests through heapcheck_test.py.
7 7
8 Most of this code is copied from ../valgrind/chrome_tests.py. 8 Most of this code is copied from ../valgrind/chrome_tests.py.
9 TODO(glider): put common functions to a standalone module. 9 TODO(glider): put common functions to a standalone module.
10 ''' 10 '''
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 def TestViews(self): 301 def TestViews(self):
302 return self.SimpleTest("views", "views_unittests") 302 return self.SimpleTest("views", "views_unittests")
303 303
304 def TestSql(self): 304 def TestSql(self):
305 return self.SimpleTest("chrome", "sql_unittests") 305 return self.SimpleTest("chrome", "sql_unittests")
306 306
307 def TestUIUnit(self): 307 def TestUIUnit(self):
308 return self.SimpleTest("chrome", "ui_unittests") 308 return self.SimpleTest("chrome", "ui_unittests")
309 309
310 def TestGfx(self): 310 def TestGfx(self):
311 return self.SimpleTest("chrome", "gfx_unittests") 311 # Run ui_unittests, a successor of gfx_unittests, since gfx_unittests is
312 # deprecated.
313 # TODO(hbono): This is a band-aid fix. We need to change the master script
314 # so our bots run ui_unittests.
315 return self.SimpleTest("chrome", "ui_unittests")
312 316
313 def TestLayoutChunk(self, chunk_num, chunk_size): 317 def TestLayoutChunk(self, chunk_num, chunk_size):
314 '''Runs tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size). 318 '''Runs tests [chunk_num*chunk_size .. (chunk_num+1)*chunk_size).
315 319
316 Wrap around to beginning of list at end. If chunk_size is zero, run all 320 Wrap around to beginning of list at end. If chunk_size is zero, run all
317 tests in the list once. If a text file is given as argument, it is used as 321 tests in the list once. If a text file is given as argument, it is used as
318 the list of tests. 322 the list of tests.
319 ''' 323 '''
320 # Build the ginormous commandline in 'cmd'. 324 # Build the ginormous commandline in 'cmd'.
321 # It's going to be roughly 325 # It's going to be roughly
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 for t in options.test: 459 for t in options.test:
456 tests = ChromeTests(options, args, t) 460 tests = ChromeTests(options, args, t)
457 ret = tests.Run() 461 ret = tests.Run()
458 if ret: 462 if ret:
459 return ret 463 return ret
460 return 0 464 return 0
461 465
462 466
463 if __name__ == "__main__": 467 if __name__ == "__main__":
464 sys.exit(main()) 468 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | tools/valgrind/chrome_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698