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 from measurements import session_restore_with_url | 9 from measurements import session_restore_with_url |
10 from profile_creators import small_profile_creator | 10 from profile_creators import small_profile_creator |
(...skipping 11 matching lines...) Expand all Loading... |
22 profile_dir = os.path.join(tempfile.gettempdir(), profile_type) | 22 profile_dir = os.path.join(tempfile.gettempdir(), profile_type) |
23 if not os.path.exists(profile_dir): | 23 if not os.path.exists(profile_dir): |
24 new_args = args.Copy() | 24 new_args = args.Copy() |
25 new_args.pageset_repeat = 1 | 25 new_args.pageset_repeat = 1 |
26 new_args.output_dir = profile_dir | 26 new_args.output_dir = profile_dir |
27 profile_generator.GenerateProfiles( | 27 profile_generator.GenerateProfiles( |
28 small_profile_creator.SmallProfileCreator, profile_type, new_args) | 28 small_profile_creator.SmallProfileCreator, profile_type, new_args) |
29 args.browser_options.profile_dir = os.path.join(profile_dir, profile_type) | 29 args.browser_options.profile_dir = os.path.join(profile_dir, profile_type) |
30 | 30 |
31 | 31 |
32 @test.Disabled('android') # crbug.com/325479 | 32 @test.Disabled('android', 'linux') # crbug.com/325479, crbug.com/381990 |
33 class SessionRestoreColdTypical25(_SessionRestoreTest): | 33 class SessionRestoreColdTypical25(_SessionRestoreTest): |
34 tag = 'cold' | 34 tag = 'cold' |
35 test = session_restore.SessionRestore | 35 test = session_restore.SessionRestore |
36 page_set = 'page_sets/typical_25.py' | 36 page_set = 'page_sets/typical_25.py' |
37 options = {'cold': True, | 37 options = {'cold': True, |
38 'pageset_repeat': 5} | 38 'pageset_repeat': 5} |
39 | 39 |
40 | 40 |
41 @test.Disabled('android') # crbug.com/325479 | 41 @test.Disabled('android', 'linux') # crbug.com/325479, crbug.com/381990 |
42 class SessionRestoreWarmTypical25(_SessionRestoreTest): | 42 class SessionRestoreWarmTypical25(_SessionRestoreTest): |
43 tag = 'warm' | 43 tag = 'warm' |
44 test = session_restore.SessionRestore | 44 test = session_restore.SessionRestore |
45 page_set = 'page_sets/typical_25.py' | 45 page_set = 'page_sets/typical_25.py' |
46 options = {'warm': True, | 46 options = {'warm': True, |
47 'pageset_repeat': 20} | 47 'pageset_repeat': 20} |
48 | 48 |
49 | 49 |
50 @test.Disabled('android') # crbug.com/325479 | 50 @test.Disabled('android', 'linux') # crbug.com/325479, crbug.com/381990 |
51 class SessionRestoreWithUrlCold(_SessionRestoreTest): | 51 class SessionRestoreWithUrlCold(_SessionRestoreTest): |
52 """Measure Chrome cold session restore with startup URLs.""" | 52 """Measure Chrome cold session restore with startup URLs.""" |
53 tag = 'cold' | 53 tag = 'cold' |
54 test = session_restore_with_url.SessionRestoreWithUrl | 54 test = session_restore_with_url.SessionRestoreWithUrl |
55 page_set = 'page_sets/startup_pages.py' | 55 page_set = 'page_sets/startup_pages.py' |
56 options = {'cold': True, | 56 options = {'cold': True, |
57 'pageset_repeat': 5} | 57 'pageset_repeat': 5} |
58 | 58 |
59 | 59 |
60 @test.Disabled('android') # crbug.com/325479 | 60 @test.Disabled('android', 'linux') # crbug.com/325479, crbug.com/381990 |
61 class SessionRestoreWithUrlWarm(_SessionRestoreTest): | 61 class SessionRestoreWithUrlWarm(_SessionRestoreTest): |
62 """Measure Chrome warm session restore with startup URLs.""" | 62 """Measure Chrome warm session restore with startup URLs.""" |
63 tag = 'warm' | 63 tag = 'warm' |
64 test = session_restore_with_url.SessionRestoreWithUrl | 64 test = session_restore_with_url.SessionRestoreWithUrl |
65 page_set = 'page_sets/startup_pages.py' | 65 page_set = 'page_sets/startup_pages.py' |
66 options = {'warm': True, | 66 options = {'warm': True, |
67 'pageset_repeat': 10} | 67 'pageset_repeat': 10} |
OLD | NEW |