Index: telemetry/examples/browser_tests/simple_sharding_test.py |
diff --git a/telemetry/examples/browser_tests/simple_sharding_test.py b/telemetry/examples/browser_tests/simple_sharding_test.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..be56d6c9a77e695cfa2fe65bac9afc3bb52a0a48 |
--- /dev/null |
+++ b/telemetry/examples/browser_tests/simple_sharding_test.py |
@@ -0,0 +1,27 @@ |
+# Copyright 2016 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+from telemetry.testing import serially_executed_browser_test_case |
+ |
+ |
+class SimpleShardingTest( |
+ serially_executed_browser_test_case.SeriallyBrowserTestCase): |
+ |
+ def Test1(self): |
+ pass |
+ |
+ def Test2(self): |
+ pass |
+ |
+ def Test3(self): |
+ pass |
+ |
+ @classmethod |
+ def GenerateTestCases_PassingTest(cls, options): |
+ del options # unused |
+ for i in xrange(10): |
+ yield 'passing_test_' + str(i), (i,) |
+ |
+ def PassingTest(self, a): |
+ self.assertGreaterEqual(a, 0) |