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

Unified Diff: tools/memory_inspector/memory_inspector/data/file_storage_unittest.py

Issue 549313006: [Android] memory_inspector: move to libheap_profiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mi3_prebuilts
Patch Set: Add prebuilts Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: tools/memory_inspector/memory_inspector/data/file_storage_unittest.py
diff --git a/tools/memory_inspector/memory_inspector/data/file_storage_unittest.py b/tools/memory_inspector/memory_inspector/data/file_storage_unittest.py
index 79ffd314167a4e837493e59abe004838cd7649d4..0138a56ff5051213be005cb39791dc535c382430 100644
--- a/tools/memory_inspector/memory_inspector/data/file_storage_unittest.py
+++ b/tools/memory_inspector/memory_inspector/data/file_storage_unittest.py
@@ -87,7 +87,10 @@ class FileStorageTest(unittest.TestCase):
frame = nh.GetStackFrame(i * 10 + 2)
frame.SetExecFileInfo('bar.so', 2)
stack_trace.Add(frame)
- nh.Add(native_heap.Allocation(i * 2, i * 3, stack_trace))
+ nh.Add(native_heap.Allocation(size=i * 10,
+ stack_trace=stack_trace,
+ start=i * 20,
+ flags=i * 30))
archive.StoreNativeHeap(nh)
nh_deser = archive.LoadNativeHeap(timestamp)
self._DeepCompare(nh, nh_deser)

Powered by Google App Engine
This is Rietveld 408576698