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

Unified Diff: tools/telemetry/telemetry/internal/story_runner_unittest.py

Issue 1140143002: [Telemetry] Remove results param in shared_state.TearDownState(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: tools/telemetry/telemetry/internal/story_runner_unittest.py
diff --git a/tools/telemetry/telemetry/internal/story_runner_unittest.py b/tools/telemetry/telemetry/internal/story_runner_unittest.py
index 8aa121448d311c6e3a918e2d6e217f9a76b43bc3..65959c76279993ba25746024c109d046028d2074 100644
--- a/tools/telemetry/telemetry/internal/story_runner_unittest.py
+++ b/tools/telemetry/telemetry/internal/story_runner_unittest.py
@@ -64,7 +64,7 @@ class TestSharedState(shared_state.SharedState):
def DidRunUserStory(self, results):
pass
- def TearDownState(self, results):
+ def TearDownState(self):
pass
@@ -250,7 +250,7 @@ class StoryRunnerTest(unittest.TestCase):
super(FoozUserStoryState, self).__init__(
test, options, user_story_setz)
fooz_init_call_counter[0] += 1
- def TearDownState(self, _results):
+ def TearDownState(self):
fooz_tear_down_call_counter[0] += 1
class BarzUserStoryState(BarUserStoryState):
@@ -258,7 +258,7 @@ class StoryRunnerTest(unittest.TestCase):
super(BarzUserStoryState, self).__init__(
test, options, user_story_setz)
barz_init_call_counter[0] += 1
- def TearDownState(self, _results):
+ def TearDownState(self):
barz_tear_down_call_counter[0] += 1
def AssertAndCleanUpFoo():
self.assertEquals(1, fooz_init_call_counter[0])
@@ -369,7 +369,7 @@ class StoryRunnerTest(unittest.TestCase):
pass
class TestTearDownSharedState(TestSharedPageState):
- def TearDownState(self, results):
+ def TearDownState(self):
unit_test_events.append('tear-down-state')
raise DidRunTestError
@@ -512,7 +512,7 @@ class StoryRunnerTest(unittest.TestCase):
def GetTestExpectationAndSkipValue(self, expectations):
return 'pass', None
- def TearDownState(self, results):
+ def TearDownState(self):
pass
class FailingUserStory(user_story.UserStory):
« no previous file with comments | « tools/telemetry/telemetry/internal/story_runner.py ('k') | tools/telemetry/telemetry/page/shared_page_state.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698