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

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

Issue 2541843007: [Telemetry][Android] Wait for device under test to cool between pages. (Closed)
Patch Set: fix more tests Created 4 years 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/internal/story_runner.py ('k') | telemetry/telemetry/testing/fakes/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/internal/story_runner_unittest.py
diff --git a/telemetry/telemetry/internal/story_runner_unittest.py b/telemetry/telemetry/internal/story_runner_unittest.py
index ed8b4674b25868dcdca47f26c7a0c888e93a278f..4eaa55c7d9a27c83a0a23f93f9606e0aa62476f8 100644
--- a/telemetry/telemetry/internal/story_runner_unittest.py
+++ b/telemetry/telemetry/internal/story_runner_unittest.py
@@ -43,6 +43,9 @@ class FakePlatform(object):
def CanMonitorThermalThrottling(self):
return False
+ def WaitForTemperature(self, _):
+ pass
+
class TestSharedState(story_module.SharedState):
@@ -129,6 +132,7 @@ class MixedStateStorySet(story_module.StorySet):
def allow_mixed_story_states(self):
return True
+
def SetupStorySet(allow_multiple_story_states, story_state_list):
if allow_multiple_story_states:
story_set = MixedStateStorySet()
@@ -139,6 +143,7 @@ def SetupStorySet(allow_multiple_story_states, story_state_list):
name='story%d' % i))
return story_set
+
def _GetOptionForUnittest():
options = options_for_unittests.GetCopy()
options.output_formats = ['none']
@@ -166,7 +171,6 @@ class TestOnlyException(Exception):
class FailureValueMatcher(object):
-
def __init__(self, expected_exception_message):
self._expected_exception_message = expected_exception_message
@@ -176,13 +180,11 @@ class FailureValueMatcher(object):
class SkipValueMatcher(object):
-
def __eq__(self, other):
return isinstance(other, skip.SkipValue)
class StoryRunnerTest(unittest.TestCase):
-
def setUp(self):
self.fake_stdout = StringIO.StringIO()
self.actual_stdout = sys.stdout
« no previous file with comments | « telemetry/telemetry/internal/story_runner.py ('k') | telemetry/telemetry/testing/fakes/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698