OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 from page_sets.login_helpers import google_login | 5 from page_sets.login_helpers import google_login |
6 from page_sets.system_health import platforms | 6 from page_sets.system_health import platforms |
7 from page_sets.system_health import system_health_story | 7 from page_sets.system_health import system_health_story |
8 | 8 |
9 from telemetry import decorators | |
10 | |
11 | 9 |
12 IDLE_TIME_IN_SECONDS = 100 | 10 IDLE_TIME_IN_SECONDS = 100 |
13 SAMPLING_INTERVAL_IN_SECONDS = 1 | 11 SAMPLING_INTERVAL_IN_SECONDS = 1 |
14 STEPS = IDLE_TIME_IN_SECONDS / SAMPLING_INTERVAL_IN_SECONDS | 12 STEPS = IDLE_TIME_IN_SECONDS / SAMPLING_INTERVAL_IN_SECONDS |
15 | 13 |
16 | 14 |
17 class _LongRunningStory(system_health_story.SystemHealthStory): | 15 class _LongRunningStory(system_health_story.SystemHealthStory): |
18 """Abstract base class for long running stories.""" | 16 """Abstract base class for long running stories.""" |
19 ABSTRACT_STORY = True | 17 ABSTRACT_STORY = True |
20 BACKGROUND = False | 18 BACKGROUND = False |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 77 |
80 | 78 |
81 class LongRunningGmailMobileForegroundStory(_LongRunningGmailMobileBase): | 79 class LongRunningGmailMobileForegroundStory(_LongRunningGmailMobileBase): |
82 NAME = 'long_running:tools:gmail-foreground' | 80 NAME = 'long_running:tools:gmail-foreground' |
83 | 81 |
84 | 82 |
85 class LongRunningGmailDesktopForegroundStory(_LongRunningGmailDesktopBase): | 83 class LongRunningGmailDesktopForegroundStory(_LongRunningGmailDesktopBase): |
86 NAME = 'long_running:tools:gmail-foreground' | 84 NAME = 'long_running:tools:gmail-foreground' |
87 | 85 |
88 | 86 |
89 # crbug.com/643110 | |
90 @decorators.Disabled('android') | |
91 class LongRunningGmailMobileBackgroundStory(_LongRunningGmailMobileBase): | 87 class LongRunningGmailMobileBackgroundStory(_LongRunningGmailMobileBase): |
92 BACKGROUND = True | 88 BACKGROUND = True |
93 NAME = 'long_running:tools:gmail-background' | 89 NAME = 'long_running:tools:gmail-background' |
94 | 90 |
95 | 91 |
96 class LongRunningGmailDesktopBackgroundStory(_LongRunningGmailDesktopBase): | 92 class LongRunningGmailDesktopBackgroundStory(_LongRunningGmailDesktopBase): |
97 BACKGROUND = True | 93 BACKGROUND = True |
98 NAME = 'long_running:tools:gmail-background' | 94 NAME = 'long_running:tools:gmail-background' |
OLD | NEW |