| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2012 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 import os | 4 import os |
| 5 import shutil | 5 import shutil |
| 6 import tempfile | 6 import tempfile |
| 7 import unittest | 7 import unittest |
| 8 | 8 |
| 9 from telemetry.page import cloud_storage | 9 from telemetry.page import cloud_storage |
| 10 from telemetry.page import page | 10 from telemetry.page import page |
| 11 from telemetry.page import page_set_archive_info | 11 from telemetry.page import page_set_archive_info |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 self.assertTrue(os.path.exists(new_recording)) | 153 self.assertTrue(os.path.exists(new_recording)) |
| 154 self.assertFalse(os.path.exists(new_temp_recording)) | 154 self.assertFalse(os.path.exists(new_temp_recording)) |
| 155 self.assertCorrectHashFile(new_recording) | 155 self.assertCorrectHashFile(new_recording) |
| 156 | 156 |
| 157 # Check that the archive info was written correctly. | 157 # Check that the archive info was written correctly. |
| 158 self.assertTrue(os.path.exists(self.page_set_archive_info_file)) | 158 self.assertTrue(os.path.exists(self.page_set_archive_info_file)) |
| 159 read_archive_info = page_set_archive_info.PageSetArchiveInfo.FromFile( | 159 read_archive_info = page_set_archive_info.PageSetArchiveInfo.FromFile( |
| 160 self.page_set_archive_info_file) | 160 self.page_set_archive_info_file) |
| 161 self.assertEquals(new_recording, | 161 self.assertEquals(new_recording, |
| 162 read_archive_info.WprFilePathForPage(page1)) | 162 read_archive_info.WprFilePathForPage(page1)) |
| OLD | NEW |