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

Unified Diff: tools/telemetry/telemetry/story/shared_state.py

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « tools/telemetry/telemetry/story/__init__.py ('k') | tools/telemetry/telemetry/story/story.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/story/shared_state.py
diff --git a/tools/telemetry/telemetry/story/shared_state.py b/tools/telemetry/telemetry/story/shared_state.py
deleted file mode 100644
index 0b360d3915bcc7c2d5c5ed66abb775ded254a7af..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/story/shared_state.py
+++ /dev/null
@@ -1,68 +0,0 @@
-# Copyright 2014 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.
-
-
-class SharedState(object):
- """A class that manages the test state across multiple stories.
- It's styled on unittest.TestCase for handling test setup & teardown logic.
-
- """
-
- def __init__(self, test, options, story_set):
- """ This method is styled on unittest.TestCase.setUpClass.
- Override to do any action before running stories that
- share this same state.
- Args:
- test: a page_test.PageTest or story_test.StoryTest instance.
- options: a BrowserFinderOptions instance that contains command line
- options.
- story_set: a story.StorySet instance.
- """
- pass
-
- @property
- def platform(self):
- """ Override to return the platform which stories that share this same
- state will be run on.
- """
- raise NotImplementedError()
-
- def WillRunStory(self, story):
- """ Override to do any action before running each one of all stories
- that share this same state.
- This method is styled on unittest.TestCase.setUp.
- """
- raise NotImplementedError()
-
- def DidRunStory(self, results):
- """ Override to do any action after running each of all stories that
- share this same state.
- This method is styled on unittest.TestCase.tearDown.
- """
- raise NotImplementedError()
-
- def CanRunStory(self, story):
- """Indicate whether the story can be run in the current configuration.
- This is called after WillRunStory and before RunStory. Return True
- if the story should be run, and False if it should be skipped.
- Most subclasses will probably want to override this to always
- return True.
- Args:
- story: a story.Story instance.
- """
- raise NotImplementedError()
-
- def RunStory(self, results):
- """ Override to do any action before running each one of all stories
- that share this same state.
- This method is styled on unittest.TestCase.run.
- """
- raise NotImplementedError()
-
- def TearDownState(self):
- """ Override to do any action after running multiple stories that
- share this same state.
- This method is styled on unittest.TestCase.tearDownClass.
- """
- raise NotImplementedError()
« no previous file with comments | « tools/telemetry/telemetry/story/__init__.py ('k') | tools/telemetry/telemetry/story/story.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698