| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from telemetry.testing import serially_executed_browser_test_case | 5 from telemetry.testing import serially_executed_browser_test_case |
| 6 | 6 |
| 7 | 7 |
| 8 class SimpleShardingTest( | 8 class SimpleShardingTest( |
| 9 serially_executed_browser_test_case.SeriallyBrowserTestCase): | 9 serially_executed_browser_test_case.SeriallyExecutedBrowserTestCase): |
| 10 | 10 |
| 11 def Test1(self): | 11 def Test1(self): |
| 12 pass | 12 pass |
| 13 | 13 |
| 14 def Test2(self): | 14 def Test2(self): |
| 15 pass | 15 pass |
| 16 | 16 |
| 17 def Test3(self): | 17 def Test3(self): |
| 18 pass | 18 pass |
| 19 | 19 |
| 20 @classmethod | 20 @classmethod |
| 21 def GenerateTestCases_PassingTest(cls, options): | 21 def GenerateTestCases_PassingTest(cls, options): |
| 22 del options # unused | 22 del options # unused |
| 23 for i in xrange(10): | 23 for i in xrange(10): |
| 24 yield 'passing_test_' + str(i), (i,) | 24 yield 'passing_test_' + str(i), (i,) |
| 25 | 25 |
| 26 def PassingTest(self, a): | 26 def PassingTest(self, a): |
| 27 self.assertGreaterEqual(a, 0) | 27 self.assertGreaterEqual(a, 0) |
| OLD | NEW |