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 3# found in the LICENSE file. 4 5import sys 6 7from telemetry.testing import serially_executed_browser_test_case 8 9 10class SimpleShardingTest( 11 serially_executed_browser_test_case.SeriallyExecutedBrowserTestCase): 12 13 def Test1(self): 14 pass 15 16 def Test2(self): 17 pass 18 19 def Test3(self): 20 pass 21 22 @classmethod 23 def GenerateTestCases_PassingTest(cls, options): 24 del options # unused 25 for i in xrange(10): 26 yield 'passing_test_' + str(i), (i,) 27 28 def PassingTest(self, a): 29 self.assertGreaterEqual(a, 0) 30 31 32def load_tests(loader, tests, pattern): 33 del loader, tests, pattern # Unused. 34 return serially_executed_browser_test_case.LoadAllTestsInModule( 35 sys.modules[__name__]) 36