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

Unified Diff: tools/perf/page_sets/typical_25.py

Issue 2933173002: Deleting unused story sets (Closed)
Patch Set: Deleting unused story sets Created 3 years, 6 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/perf/page_sets/typical_10_mobile.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/typical_25.py
diff --git a/tools/perf/page_sets/typical_25.py b/tools/perf/page_sets/typical_25.py
index a1700d13776bc1c156adf72110fed118ecf73f16..679a1b139b7dea20e5ad787cad2acd91c19b829f 100644
--- a/tools/perf/page_sets/typical_25.py
+++ b/tools/perf/page_sets/typical_25.py
@@ -2,41 +2,12 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import shutil
-
-from profile_creators import profile_generator
from telemetry.page import page as page_module
from telemetry.page import cache_temperature as cache_temperature_module
from telemetry.page import shared_page_state
from telemetry import story
-class Typical25ProfileSharedState(shared_page_state.SharedDesktopPageState):
- """Shared state associated with a profile generated from 25 navigations.
-
- Generates a shared profile on initialization.
- """
-
- def __init__(self, test, finder_options, story_set):
- super(Typical25ProfileSharedState, self).__init__(
- test, finder_options, story_set)
- from profile_creators import small_profile_extender
- generator = profile_generator.ProfileGenerator(
- small_profile_extender.SmallProfileExtender,
- 'small_profile')
- self._out_dir, self._owns_out_dir = generator.Run(finder_options)
- if self._out_dir:
- finder_options.browser_options.profile_dir = self._out_dir
- else:
- finder_options.browser_options.dont_override_profile = True
-
- def TearDownState(self):
- """Clean up generated profile directory."""
- super(Typical25ProfileSharedState, self).TearDownState()
- if self._owns_out_dir:
- shutil.rmtree(self._out_dir)
-
-
class Typical25Page(page_module.Page):
def __init__(self, url, page_set, run_no_page_interactions,
« no previous file with comments | « tools/perf/page_sets/typical_10_mobile.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698