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

Unified Diff: telemetry/telemetry/testdata/run_benchmark_integration_test_benchmarks.py

Issue 2291313002: [Telemetry] Add 'check_independent' command to benchmark_runner (Closed)
Patch Set: add testdata __init__.py Created 4 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « telemetry/telemetry/testdata/__init__.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/testdata/run_benchmark_integration_test_benchmarks.py
diff --git a/telemetry/telemetry/testdata/run_benchmark_integration_test_benchmarks.py b/telemetry/telemetry/testdata/run_benchmark_integration_test_benchmarks.py
new file mode 100644
index 0000000000000000000000000000000000000000..a91a1d9a852807fd85f72b6272f0872553ac2556
--- /dev/null
+++ b/telemetry/telemetry/testdata/run_benchmark_integration_test_benchmarks.py
@@ -0,0 +1,24 @@
+# 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 import benchmark
+
+class IndependentBenchmark(benchmark.Benchmark):
+ @classmethod
+ def Name(cls):
+ return 'independent'
+
+ @classmethod
+ def ShouldTearDownStateAfterEachStoryRun(cls):
+ return True
+
+
+class DependentBenchmark(benchmark.Benchmark):
+ @classmethod
+ def Name(cls):
+ return 'dependent'
+
+ @classmethod
+ def ShouldTearDownStateAfterEachStoryRun(cls):
+ return False
« no previous file with comments | « telemetry/telemetry/testdata/__init__.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698