OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 import string | 6 import string |
| 7 import sys |
7 | 8 |
8 HEADER = """\ | 9 HEADER = """\ |
9 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 10 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
10 // Use of this source code is governed by a BSD-style license that can be | 11 // Use of this source code is governed by a BSD-style license that can be |
11 // found in the LICENSE file. | 12 // found in the LICENSE file. |
12 | 13 |
13 // This file automatically generated by testing/generate_gmock_mutant.py. | 14 // This file automatically generated by testing/generate_gmock_mutant.py. |
14 // DO NOT EDIT. | 15 // DO NOT EDIT. |
15 | 16 |
16 #ifndef TESTING_GMOCK_MUTANT_H_ | 17 #ifndef TESTING_GMOCK_MUTANT_H_ |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 def main(): | 441 def main(): |
441 print HEADER | 442 print HEADER |
442 for prebound in xrange(0, 6 + 1): | 443 for prebound in xrange(0, 6 + 1): |
443 for args in xrange(0, 6 + 1): | 444 for args in xrange(0, 6 + 1): |
444 GenerateDispatch(prebound, args) | 445 GenerateDispatch(prebound, args) |
445 print MUTANT | 446 print MUTANT |
446 for prebound in xrange(0, 6 + 1): | 447 for prebound in xrange(0, 6 + 1): |
447 for args in xrange(0, 6 + 1): | 448 for args in xrange(0, 6 + 1): |
448 GenerateCreateFunctor(prebound, args) | 449 GenerateCreateFunctor(prebound, args) |
449 print FOOTER | 450 print FOOTER |
| 451 return 0 |
| 452 |
450 | 453 |
451 if __name__ == "__main__": | 454 if __name__ == "__main__": |
452 main() | 455 sys.exit(main()) |
OLD | NEW |