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

Side by Side Diff: chrome/tools/automated_ui_test_tools/auto_ui_test_input_generator.py

Issue 507067: Add some licensing comments under chrome/. (Closed)
Patch Set: Created 11 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
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 # Copyright 2008 Google Inc. All Rights Reserved. 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
4 5
5 """This generates the input file for automated_ui_tests.exe. 6 """This generates the input file for automated_ui_tests.exe.
6 7
7 We take in a list of possible actions separated by new lines, the number of 8 We take in a list of possible actions separated by new lines, the number of
8 commands per file, and the number of actions per command, and generate 9 commands per file, and the number of actions per command, and generate
9 a single random file, or one or more files containing all possible commands, 10 a single random file, or one or more files containing all possible commands,
10 or one file with a partial set of possible commands starting at a certain 11 or one file with a partial set of possible commands starting at a certain
11 command number. 12 command number.
12 13
13 Example usage: 14 Example usage:
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 options.start_at_command , False) 466 options.start_at_command , False)
466 if options.is_verbose == True: 467 if options.is_verbose == True:
467 print "Finished writing partial file." 468 print "Finished writing partial file."
468 else: 469 else:
469 test_generator.CreateRandomFile(options.output_file_name) 470 test_generator.CreateRandomFile(options.output_file_name)
470 if options.is_verbose == True: 471 if options.is_verbose == True:
471 print "Output written to file: " + options.output_file_name 472 print "Output written to file: " + options.output_file_name
472 473
473 if __name__ == '__main__': 474 if __name__ == '__main__':
474 main() 475 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698