From b971e043f776eb43b3d06ffae74cd466ccd569ed Mon Sep 17 00:00:00 2001 From: Shibin George Date: Sat, 6 Oct 2018 09:17:17 +0530 Subject: [PATCH] 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 --- scripts/native_heapdump_viewer_tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/native_heapdump_viewer_tests.py b/scripts/native_heapdump_viewer_tests.py index 867f0fbd9..1b30c2352 100755 --- a/scripts/native_heapdump_viewer_tests.py +++ b/scripts/native_heapdump_viewer_tests.py @@ -108,7 +108,7 @@ z 0 sz 8300 num 5 bt 1300 2300 3300 def test_backtrace_num_field_valid(self): 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.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): 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.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): 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.assertEqual(2, len(backtraces)) @@ -164,7 +164,7 @@ END """ 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.assertEqual(2, len(mappings))