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 benchmark |
| 10 |
9 | 11 |
10 IDLE_TIME_IN_SECONDS = 100 | 12 IDLE_TIME_IN_SECONDS = 100 |
11 SAMPLING_INTERVAL_IN_SECONDS = 1 | 13 SAMPLING_INTERVAL_IN_SECONDS = 1 |
12 STEPS = IDLE_TIME_IN_SECONDS / SAMPLING_INTERVAL_IN_SECONDS | 14 STEPS = IDLE_TIME_IN_SECONDS / SAMPLING_INTERVAL_IN_SECONDS |
13 | 15 |
14 | 16 |
15 class _LongRunningStory(system_health_story.SystemHealthStory): | 17 class _LongRunningStory(system_health_story.SystemHealthStory): |
16 """Abstract base class for long running stories.""" | 18 """Abstract base class for long running stories.""" |
17 ABSTRACT_STORY = True | 19 ABSTRACT_STORY = True |
18 BACKGROUND = False | 20 BACKGROUND = False |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 79 |
78 | 80 |
79 class LongRunningGmailMobileForegroundStory(_LongRunningGmailMobileBase): | 81 class LongRunningGmailMobileForegroundStory(_LongRunningGmailMobileBase): |
80 NAME = 'long_running:tools:gmail-foreground' | 82 NAME = 'long_running:tools:gmail-foreground' |
81 | 83 |
82 | 84 |
83 class LongRunningGmailDesktopForegroundStory(_LongRunningGmailDesktopBase): | 85 class LongRunningGmailDesktopForegroundStory(_LongRunningGmailDesktopBase): |
84 NAME = 'long_running:tools:gmail-foreground' | 86 NAME = 'long_running:tools:gmail-foreground' |
85 | 87 |
86 | 88 |
| 89 @benchmark.Disabled('android-webview') # Webview does not have tabs. |
87 class LongRunningGmailMobileBackgroundStory(_LongRunningGmailMobileBase): | 90 class LongRunningGmailMobileBackgroundStory(_LongRunningGmailMobileBase): |
88 BACKGROUND = True | 91 BACKGROUND = True |
89 NAME = 'long_running:tools:gmail-background' | 92 NAME = 'long_running:tools:gmail-background' |
90 | 93 |
91 | 94 |
92 class LongRunningGmailDesktopBackgroundStory(_LongRunningGmailDesktopBase): | 95 class LongRunningGmailDesktopBackgroundStory(_LongRunningGmailDesktopBase): |
93 BACKGROUND = True | 96 BACKGROUND = True |
94 NAME = 'long_running:tools:gmail-background' | 97 NAME = 'long_running:tools:gmail-background' |
OLD | NEW |