| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import os | 5 import os |
| 6 import tempfile | 6 import tempfile |
| 7 | 7 |
| 8 from measurements import session_restore | 8 from measurements import session_restore |
| 9 import page_sets | 9 import page_sets |
| 10 from profile_creators import small_profile_creator | 10 from profile_creators import small_profile_creator |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 new_args.pageset_repeat = 1 | 31 new_args.pageset_repeat = 1 |
| 32 new_args.output_dir = output_dir | 32 new_args.output_dir = output_dir |
| 33 profile_generator.GenerateProfiles( | 33 profile_generator.GenerateProfiles( |
| 34 small_profile_creator.SmallProfileCreator, profile_type, new_args) | 34 small_profile_creator.SmallProfileCreator, profile_type, new_args) |
| 35 args.browser_options.profile_dir = profile_dir | 35 args.browser_options.profile_dir = profile_dir |
| 36 | 36 |
| 37 def CreatePageTest(self, options): | 37 def CreatePageTest(self, options): |
| 38 is_cold = (self.tag == 'cold') | 38 is_cold = (self.tag == 'cold') |
| 39 return self.test(cold=is_cold) | 39 return self.test(cold=is_cold) |
| 40 | 40 |
| 41 def CreatePageSet(self, options): |
| 42 return page_sets.Typical25PageSet(make_pages_with_no_interactions=True) |
| 43 |
| 41 # crbug.com/325479, crbug.com/381990 | 44 # crbug.com/325479, crbug.com/381990 |
| 42 @benchmark.Disabled('android', 'linux', 'reference') | 45 @benchmark.Disabled('android', 'linux', 'reference') |
| 43 class SessionRestoreColdTypical25(_SessionRestoreTest): | 46 class SessionRestoreColdTypical25(_SessionRestoreTest): |
| 44 tag = 'cold' | 47 tag = 'cold' |
| 45 test = session_restore.SessionRestore | 48 test = session_restore.SessionRestore |
| 46 page_set = page_sets.Typical25PageSet | |
| 47 options = {'pageset_repeat': 5} | 49 options = {'pageset_repeat': 5} |
| 48 | 50 |
| 49 | 51 |
| 50 # crbug.com/325479, crbug.com/381990 | 52 # crbug.com/325479, crbug.com/381990 |
| 51 @benchmark.Disabled('android', 'linux', 'reference') | 53 @benchmark.Disabled('android', 'linux', 'reference') |
| 52 class SessionRestoreWarmTypical25(_SessionRestoreTest): | 54 class SessionRestoreWarmTypical25(_SessionRestoreTest): |
| 53 tag = 'warm' | 55 tag = 'warm' |
| 54 test = session_restore.SessionRestore | 56 test = session_restore.SessionRestore |
| 55 page_set = page_sets.Typical25PageSet | |
| 56 options = {'pageset_repeat': 20} | 57 options = {'pageset_repeat': 20} |
| OLD | NEW |