def test_version11_valid(self): heap = self.CreateTmpFile("Android Native Heap Dump v1.1" + self._heap_data + self._map_data) self.assertTrue(native_heapdump_viewer.GetNumFieldValid(heap))
def test_version10_invalid(self): heap = self.CreateTmpFile(self._heap_num_field_invalid_version10 + self._map_data) self.assertFalse(native_heapdump_viewer.GetNumFieldValid(heap))