| 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 import common_util | 5 import common_util |
| 6 import emulation | 6 import emulation |
| 7 import sandwich_runner | 7 import sandwich_runner |
| 8 import task_manager | 8 import task_manager |
| 9 | 9 |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 self.CreateStaticTask('common/webpages.wpr', original_wpr_path) | 64 self.CreateStaticTask('common/webpages.wpr', original_wpr_path) |
| 65 | 65 |
| 66 def PopulateWprRecordingTask(self): | 66 def PopulateWprRecordingTask(self): |
| 67 """Records the original WPR archive.""" | 67 """Records the original WPR archive.""" |
| 68 @self.RegisterTask('common/webpages.wpr') | 68 @self.RegisterTask('common/webpages.wpr') |
| 69 def BuildOriginalWpr(): | 69 def BuildOriginalWpr(): |
| 70 common_util.EnsureParentDirectoryExists(BuildOriginalWpr.path) | 70 common_util.EnsureParentDirectoryExists(BuildOriginalWpr.path) |
| 71 runner = self.CreateSandwichRunner() | 71 runner = self.CreateSandwichRunner() |
| 72 runner.wpr_archive_path = BuildOriginalWpr.path | 72 runner.wpr_archive_path = BuildOriginalWpr.path |
| 73 runner.wpr_record = True | 73 runner.wpr_record = True |
| 74 runner.output_dir = BuildOriginalWpr.path[:-4] + '-run' |
| 74 runner.Run() | 75 runner.Run() |
| 75 | 76 |
| 76 self.original_wpr_task = BuildOriginalWpr | 77 self.original_wpr_task = BuildOriginalWpr |
| OLD | NEW |