tools/android/elf_compression/test/elf_headers_test.py
def testElfHeaderNoopPatching(self):
    """Patching the ELF without any changes."""
    with open(self.library_path, 'rb') as f:
      data = bytearray(f.read())
    data_copy = data[:]
    elf = elf_headers.ElfHeader(data)
    elf.PatchData(data)
    self.assertEqual(data, data_copy)
Patching the ELF without any changes.
Patching the ELF without any changes.
Patching the ELF without any changes .
def testElfHeaderNoopPatching(self):
    with open(self.library_path, 'rb') as f:
      data = bytearray(f.read())
    data_copy = data[:]
    elf = elf_headers.ElfHeader(data)
    elf.PatchData(data)
    self.assertEqual(data, data_copy)
def testElfHeaderNoopPatching ( self ) : with open ( self . library_path , 'rb' ) as f : data = bytearray ( f . read ( ) ) data_copy = data [ : ] elf = elf_headers . ElfHeader ( data ) elf . PatchData ( data ) self . assertEqual ( data , data_copy )
Patching the ELF without any changes.
Patching the ELF without any changes .
"""Patching the ELF without any changes."""
self