Home | History | Annotate | Download | only in mac

Lines Matching refs:Reporter

77 class MockFatReaderReporter: public FatReader::Reporter {
80 : FatReader::Reporter(filename) { }
86 class MockReaderReporter: public Reader::Reporter {
88 MockReaderReporter(const string &filename) : Reader::Reporter(filename) { }
126 FatReader::Reporter reporter("filename");
127 reporter.BadHeader();
131 FatReader::Reporter reporter("filename");
132 reporter.MisplacedObjectFile();
136 FatReader::Reporter reporter("filename");
137 reporter.TooShort();
141 Reader::Reporter reporter("filename");
142 reporter.BadHeader();
146 Reader::Reporter reporter("filename");
147 reporter.CPUTypeMismatch(CPU_TYPE_I386, CPU_SUBTYPE_X86_ALL,
152 Reader::Reporter reporter("filename");
153 reporter.HeaderTruncated();
157 Reader::Reporter reporter("filename");
158 reporter.LoadCommandRegionTruncated();
162 Reader::Reporter reporter("filename");
163 reporter.LoadCommandsOverrun(10, 9, LC_DYSYMTAB);
164 reporter.LoadCommandsOverrun(10, 9, 0);
168 Reader::Reporter reporter("filename");
169 reporter.LoadCommandTooShort(11, LC_SYMTAB);
173 Reader::Reporter reporter("filename");
174 reporter.SectionsMissing("segment name");
178 Reader::Reporter reporter("filename");
179 reporter.MisplacedSegmentData("segment name");
183 Reader::Reporter reporter("filename");
184 reporter.MisplacedSectionData("section name", "segment name");
188 Reader::Reporter reporter("filename");
189 reporter.MisplacedSymbolTable();
193 Reader::Reporter reporter("filename");
194 reporter.UnsupportedCPUType(CPU_TYPE_HPPA);
200 reporter("reporter filename"),
201 reader(&reporter), object_files(), object_files_size() {
202 EXPECT_CALL(reporter, BadHeader()).Times(0);
203 EXPECT_CALL(reporter, TooShort()).Times(0);
235 MockFatReaderReporter reporter;
246 EXPECT_CALL(reporter, BadHeader()).Times(1);
255 EXPECT_CALL(reporter, TooShort()).Times(1);
262 EXPECT_CALL(reporter, TooShort()).Times(1);
277 EXPECT_CALL(reporter, MisplacedObjectFile()).Times(1);
458 EXPECT_CALL(reporter, TooShort()).WillOnce(Return());
736 : reporter("reporter filename"),
737 reader(&reporter) {
738 EXPECT_CALL(reporter, BadHeader()).Times(0);
739 EXPECT_CALL(reporter, CPUTypeMismatch(_, _, _, _)).Times(0);
740 EXPECT_CALL(reporter, HeaderTruncated()).Times(0);
741 EXPECT_CALL(reporter, LoadCommandRegionTruncated()).Times(0);
742 EXPECT_CALL(reporter, LoadCommandsOverrun(_, _, _)).Times(0);
743 EXPECT_CALL(reporter, LoadCommandTooShort(_, _)).Times(0);
744 EXPECT_CALL(reporter, SectionsMissing(_)).Times(0);
745 EXPECT_CALL(reporter, MisplacedSegmentData(_)).Times(0);
746 EXPECT_CALL(reporter, MisplacedSectionData(_, _)).Times(0);
747 EXPECT_CALL(reporter, MisplacedSymbolTable()).Times(0);
748 EXPECT_CALL(reporter, UnsupportedCPUType(_)).Times(0);
775 MockReaderReporter reporter;
797 EXPECT_CALL(reporter, BadHeader()).WillOnce(Return());
816 EXPECT_CALL(reporter, BadHeader()).WillOnce(Return());
826 EXPECT_CALL(reporter, HeaderTruncated()).WillOnce(Return());
842 EXPECT_CALL(reporter, HeaderTruncated()).WillOnce(Return());
860 EXPECT_CALL(reporter,
982 EXPECT_CALL(reporter, LoadCommandRegionTruncated()).WillOnce(Return());
1053 EXPECT_CALL(reporter, LoadCommandsOverrun(1, 0, 0))
1070 EXPECT_CALL(reporter, LoadCommandsOverrun(1, 0, LC_SEGMENT))
1088 EXPECT_CALL(reporter, LoadCommandsOverrun(1, 0, LC_SEGMENT))
1265 EXPECT_CALL(reporter, LoadCommandTooShort(0, LC_SEGMENT))
1290 EXPECT_CALL(reporter, MisplacedSegmentData("notmerelyfifteen"))
1473 EXPECT_CALL(reporter, MisplacedSectionData("before", "segment"))
1514 EXPECT_CALL(reporter, MisplacedSectionData("after", "segment"))
1555 EXPECT_CALL(reporter, MisplacedSectionData("too big", "segment"))
1869 EXPECT_CALL(reporter, MisplacedSymbolTable()).Times(1);
1900 EXPECT_CALL(reporter, MisplacedSymbolTable()).Times(1);