From 6dc56cca4401eacf1efbb0bdaf71ca85863c7ca0 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek@gmail.com" Date: Thu, 4 Apr 2013 16:24:44 +0000 Subject: Support generic Elf notes, with unit tests A=Mike Hommey R=ted at https://breakpad.appspot.com/546002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1142 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/linux/file_id_unittest.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/common/linux/file_id_unittest.cc') diff --git a/src/common/linux/file_id_unittest.cc b/src/common/linux/file_id_unittest.cc index 7c6550b1..e2e13747 100644 --- a/src/common/linux/file_id_unittest.cc +++ b/src/common/linux/file_id_unittest.cc @@ -47,8 +47,8 @@ using namespace google_breakpad; using google_breakpad::ElfClass32; using google_breakpad::ElfClass64; using google_breakpad::SafeReadLink; -using google_breakpad::synth_elf::BuildIDNote; using google_breakpad::synth_elf::ELF; +using google_breakpad::synth_elf::Notes; using google_breakpad::test_assembler::kLittleEndian; using google_breakpad::test_assembler::Section; using ::testing::Types; @@ -160,9 +160,10 @@ TYPED_TEST(FileIDTest, BuildID) { Section text(kLittleEndian); text.Append(4096, 0); elf.AddSection(".text", text, SHT_PROGBITS); - BuildIDNote::AppendSection(elf, - kExpectedIdentifier, - sizeof(kExpectedIdentifier)); + Notes notes(kLittleEndian); + notes.AddNote(NT_GNU_BUILD_ID, "GNU", kExpectedIdentifier, + sizeof(kExpectedIdentifier)); + elf.AddSection(".note.gnu.build-id", notes, SHT_NOTE); elf.Finish(); this->GetElfContents(elf); -- cgit v1.2.1