native_heapdump_viewer_tests: update ParseNativeHeap() to pass 4 arguments
fca3084 introduced an additional argument to ParseNativeHeap().
This CL updates the test to reflect the same.
Test: "python native_heapdump_viewer_tests.py" executes without
any errors.
Change-Id: I6c196205ead2cb6abd4a646a3ac53e62ae3e5038
This commit is contained in:
@@ -108,7 +108,7 @@ z 0 sz 8300 num 5 bt 1300 2300 3300
|
|||||||
|
|
||||||
def test_backtrace_num_field_valid(self):
|
def test_backtrace_num_field_valid(self):
|
||||||
heap = self.CreateTmpFile(self._backtrace_data)
|
heap = self.CreateTmpFile(self._backtrace_data)
|
||||||
backtraces, mapppings = native_heapdump_viewer.ParseNativeHeap(heap, False, True)
|
backtraces, mapppings = native_heapdump_viewer.ParseNativeHeap(heap, False, True, "")
|
||||||
self.assertTrue(backtraces)
|
self.assertTrue(backtraces)
|
||||||
self.assertEqual(2, len(backtraces))
|
self.assertEqual(2, len(backtraces))
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ z 0 sz 8300 num 5 bt 1300 2300 3300
|
|||||||
|
|
||||||
def test_backtrace_num_field_invalid(self):
|
def test_backtrace_num_field_invalid(self):
|
||||||
heap = self.CreateTmpFile(self._backtrace_data)
|
heap = self.CreateTmpFile(self._backtrace_data)
|
||||||
backtraces, mapppings = native_heapdump_viewer.ParseNativeHeap(heap, False, False)
|
backtraces, mapppings = native_heapdump_viewer.ParseNativeHeap(heap, False, False, "")
|
||||||
self.assertTrue(backtraces)
|
self.assertTrue(backtraces)
|
||||||
self.assertEqual(2, len(backtraces))
|
self.assertEqual(2, len(backtraces))
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@ z 0 sz 8300 num 5 bt 1300 2300 3300
|
|||||||
|
|
||||||
def test_backtrace_reverse_field_valid(self):
|
def test_backtrace_reverse_field_valid(self):
|
||||||
heap = self.CreateTmpFile(self._backtrace_data)
|
heap = self.CreateTmpFile(self._backtrace_data)
|
||||||
backtraces, mapppings = native_heapdump_viewer.ParseNativeHeap(heap, True, True)
|
backtraces, mapppings = native_heapdump_viewer.ParseNativeHeap(heap, True, True, "")
|
||||||
self.assertTrue(backtraces)
|
self.assertTrue(backtraces)
|
||||||
self.assertEqual(2, len(backtraces))
|
self.assertEqual(2, len(backtraces))
|
||||||
|
|
||||||
@@ -164,7 +164,7 @@ END
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
heap = self.CreateTmpFile(map_data)
|
heap = self.CreateTmpFile(map_data)
|
||||||
backtraces, mappings = native_heapdump_viewer.ParseNativeHeap(heap, True, True)
|
backtraces, mappings = native_heapdump_viewer.ParseNativeHeap(heap, True, True, "")
|
||||||
|
|
||||||
self.assertTrue(mappings)
|
self.assertTrue(mappings)
|
||||||
self.assertEqual(2, len(mappings))
|
self.assertEqual(2, len(mappings))
|
||||||
|
|||||||
Reference in New Issue
Block a user