Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: tools/deep_memory_profiler/tests/mock_gsutil.py

Issue 400563003: deep_memory_profiler: Replace 'WebCore' with 'blink'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698