| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 import re | 7 import re |
| 8 import sys | 8 import sys |
| 9 import zipfile | 9 import zipfile |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 'heap.01234.symmap/chrome.uvwxyz.readelf-e', | 29 'heap.01234.symmap/chrome.uvwxyz.readelf-e', |
| 30 'heap.01234.symmap/chrome.abcdef.nm', | 30 'heap.01234.symmap/chrome.abcdef.nm', |
| 31 'heap.01234.symmap/files.json']) | 31 'heap.01234.symmap/files.json']) |
| 32 assert set(zip_file.namelist()) == expected_nameset | 32 assert set(zip_file.namelist()) == expected_nameset |
| 33 | 33 |
| 34 heap_1 = zip_file.getinfo('heap.01234.0001.heap') | 34 heap_1 = zip_file.getinfo('heap.01234.0001.heap') |
| 35 assert heap_1.CRC == 763099253 | 35 assert heap_1.CRC == 763099253 |
| 36 assert heap_1.file_size == 1107 | 36 assert heap_1.file_size == 1107 |
| 37 | 37 |
| 38 buckets_1 = zip_file.getinfo('heap.01234.0001.buckets') | 38 buckets_1 = zip_file.getinfo('heap.01234.0001.buckets') |
| 39 assert buckets_1.CRC == 2632528901 | 39 assert buckets_1.CRC == 3880480178 |
| 40 assert buckets_1.file_size == 2146 | 40 assert buckets_1.file_size == 2142 |
| 41 | 41 |
| 42 nm_chrome = zip_file.getinfo('heap.01234.symmap/chrome.abcdef.nm') | 42 nm_chrome = zip_file.getinfo('heap.01234.symmap/chrome.abcdef.nm') |
| 43 assert nm_chrome.CRC == 2717882373 | 43 assert nm_chrome.CRC == 492758474 |
| 44 assert nm_chrome.file_size == 131049 | 44 assert nm_chrome.file_size == 129015 |
| 45 | 45 |
| 46 zip_file.close() | 46 zip_file.close() |
| 47 return 0 | 47 return 0 |
| 48 | 48 |
| 49 | 49 |
| 50 if __name__ == '__main__': | 50 if __name__ == '__main__': |
| 51 sys.exit(main()) | 51 sys.exit(main()) |
| OLD | NEW |