• Home
  • Raw
  • Download

Lines Matching full:minidump

30 // Unit test for Minidump.  Uses a pre-generated minidump and
43 #include "google_breakpad/processor/minidump.h"
49 using google_breakpad::Minidump;
91 Minidump minidump(minidump_file_); in TEST_F() local
92 ASSERT_EQ(minidump.path(), minidump_file_); in TEST_F()
93 ASSERT_TRUE(minidump.Read()); in TEST_F()
94 const MDRawHeader* header = minidump.header(); in TEST_F()
98 MinidumpModuleList *md_module_list = minidump.GetModuleList(); in TEST_F()
109 // read minidump contents into memory, construct a stringstream around them in TEST_F()
124 // now read minidump from stringstream in TEST_F()
125 Minidump minidump(stream); in TEST_F() local
126 ASSERT_EQ(minidump.path(), ""); in TEST_F()
127 ASSERT_TRUE(minidump.Read()); in TEST_F()
128 const MDRawHeader* header = minidump.header(); in TEST_F()
140 Minidump minidump(stream); in TEST() local
141 ASSERT_TRUE(minidump.Read()); in TEST()
142 ASSERT_EQ(0U, minidump.GetDirectoryEntryCount()); in TEST()
151 Minidump minidump(stream); in TEST() local
152 ASSERT_TRUE(minidump.Read()); in TEST()
153 ASSERT_EQ(0U, minidump.GetDirectoryEntryCount()); in TEST()
166 Minidump minidump(minidump_stream); in TEST() local
167 ASSERT_TRUE(minidump.Read()); in TEST()
168 ASSERT_EQ(1U, minidump.GetDirectoryEntryCount()); in TEST()
170 const MDRawDirectory *dir = minidump.GetDirectoryEntryAtIndex(0); in TEST()
175 ASSERT_TRUE(minidump.SeekToStreamType(0xfbb7fa2bU, &stream_length)); in TEST()
178 ASSERT_TRUE(minidump.ReadBytes(stream_contents, sizeof(stream_contents))); in TEST()
182 EXPECT_FALSE(minidump.GetThreadList()); in TEST()
183 EXPECT_FALSE(minidump.GetModuleList()); in TEST()
184 EXPECT_FALSE(minidump.GetMemoryList()); in TEST()
185 EXPECT_FALSE(minidump.GetException()); in TEST()
186 EXPECT_FALSE(minidump.GetAssertion()); in TEST()
187 EXPECT_FALSE(minidump.GetSystemInfo()); in TEST()
188 EXPECT_FALSE(minidump.GetMiscInfo()); in TEST()
189 EXPECT_FALSE(minidump.GetBreakpadInfo()); in TEST()
202 Minidump minidump(minidump_stream); in TEST() local
203 ASSERT_TRUE(minidump.Read()); in TEST()
204 ASSERT_EQ(1U, minidump.GetDirectoryEntryCount()); in TEST()
206 const MDRawDirectory *dir = minidump.GetDirectoryEntryAtIndex(0); in TEST()
210 MinidumpMemoryList *memory_list = minidump.GetMemoryList(); in TEST()
256 Minidump minidump(minidump_stream); in TEST() local
257 ASSERT_TRUE(minidump.Read()); in TEST()
258 ASSERT_EQ(2U, minidump.GetDirectoryEntryCount()); in TEST()
260 MinidumpMemoryList *md_memory_list = minidump.GetMemoryList(); in TEST()
270 MinidumpThreadList *thread_list = minidump.GetThreadList(); in TEST()
335 Minidump minidump(minidump_stream); in TEST() local
336 ASSERT_TRUE(minidump.Read()); in TEST()
337 ASSERT_EQ(2U, minidump.GetDirectoryEntryCount()); in TEST()
340 MinidumpThreadList* thread_list = minidump.GetThreadList(); in TEST()
378 Minidump minidump(minidump_stream); in TEST() local
379 ASSERT_TRUE(minidump.Read()); in TEST()
380 ASSERT_EQ(2U, minidump.GetDirectoryEntryCount()); in TEST()
383 MinidumpThreadList* thread_list = minidump.GetThreadList(); in TEST()
424 Minidump minidump(minidump_stream); in TEST() local
425 ASSERT_TRUE(minidump.Read()); in TEST()
426 ASSERT_EQ(2U, minidump.GetDirectoryEntryCount()); in TEST()
428 const MDRawDirectory *dir = minidump.GetDirectoryEntryAtIndex(1); in TEST()
433 minidump.GetUnloadedModuleList(); in TEST()
505 Minidump minidump(minidump_stream); in TEST() local
506 ASSERT_TRUE(minidump.Read()); in TEST()
507 ASSERT_EQ(2U, minidump.GetDirectoryEntryCount()); in TEST()
509 const MDRawDirectory *dir = minidump.GetDirectoryEntryAtIndex(1); in TEST()
513 MinidumpModuleList *md_module_list = minidump.GetModuleList(); in TEST()
588 Minidump minidump(minidump_stream); in TEST() local
589 ASSERT_TRUE(minidump.Read()); in TEST()
591 MinidumpModuleList *md_module_list = minidump.GetModuleList(); in TEST()
669 Minidump minidump(minidump_stream); in TEST() local
670 ASSERT_TRUE(minidump.Read()); in TEST()
671 ASSERT_EQ(2U, minidump.GetDirectoryEntryCount()); in TEST()
673 MinidumpModuleList *md_module_list = minidump.GetModuleList(); in TEST()
741 Minidump minidump(minidump_stream); in TEST() local
742 ASSERT_TRUE(minidump.Read()); in TEST()
743 ASSERT_EQ(2U, minidump.GetDirectoryEntryCount()); in TEST()
745 MinidumpModuleList *md_module_list = minidump.GetModuleList(); in TEST()
772 Minidump minidump(minidump_stream); in TEST() local
773 ASSERT_TRUE(minidump.Read()); in TEST()
774 ASSERT_EQ(1U, minidump.GetDirectoryEntryCount()); in TEST()
776 const MDRawDirectory *dir = minidump.GetDirectoryEntryAtIndex(0); in TEST()
780 MinidumpSystemInfo *md_system_info = minidump.GetSystemInfo(); in TEST()
910 Minidump minidump(minidump_stream); in TEST() local
911 ASSERT_TRUE(minidump.Read()); in TEST()
912 ASSERT_EQ(5U, minidump.GetDirectoryEntryCount()); in TEST()
915 MinidumpThreadList *thread_list = minidump.GetThreadList(); in TEST()
960 MinidumpModuleList *md_module_list = minidump.GetModuleList(); in TEST()
972 minidump.GetUnloadedModuleList(); in TEST()
1024 Minidump minidump(minidump_stream); in TEST() local
1025 ASSERT_TRUE(minidump.Read()); in TEST()
1026 ASSERT_EQ(1U, minidump.GetDirectoryEntryCount()); in TEST()
1028 const MDRawDirectory *dir = minidump.GetDirectoryEntryAtIndex(0); in TEST()
1032 MinidumpMemoryInfoList *info_list = minidump.GetMemoryInfoList(); in TEST()
1082 Minidump minidump(minidump_stream); in TEST() local
1083 ASSERT_TRUE(minidump.Read()); in TEST()
1084 ASSERT_EQ(1U, minidump.GetDirectoryEntryCount()); in TEST()
1086 MinidumpException *md_exception = minidump.GetException(); in TEST()
1156 Minidump minidump(minidump_stream); in TEST() local
1157 ASSERT_TRUE(minidump.Read()); in TEST()
1158 ASSERT_EQ(1U, minidump.GetDirectoryEntryCount()); in TEST()
1160 MinidumpException *md_exception = minidump.GetException(); in TEST()
1241 Minidump minidump(minidump_stream); in TEST() local
1242 ASSERT_TRUE(minidump.Read()); in TEST()
1243 ASSERT_EQ(2U, minidump.GetDirectoryEntryCount()); in TEST()
1245 MinidumpException *md_exception = minidump.GetException(); in TEST()
1323 Minidump minidump(minidump_stream); in TEST() local
1324 ASSERT_TRUE(minidump.Read()); in TEST()
1325 ASSERT_EQ(1U, minidump.GetDirectoryEntryCount()); in TEST()
1327 MinidumpException *md_exception = minidump.GetException(); in TEST()
1342 // don't have CPU type information and at the same time the minidump lacks in TEST()
1386 Minidump minidump(minidump_stream); in TEST() local
1387 ASSERT_TRUE(minidump.Read()); in TEST()
1388 ASSERT_EQ(1U, minidump.GetDirectoryEntryCount()); in TEST()
1390 MinidumpException *md_exception = minidump.GetException(); in TEST()
1470 Minidump minidump(minidump_stream); in TEST() local
1471 ASSERT_TRUE(minidump.Read()); in TEST()
1472 ASSERT_EQ(1U, minidump.GetDirectoryEntryCount()); in TEST()
1474 MinidumpException *md_exception = minidump.GetException(); in TEST()
1569 Minidump minidump(minidump_stream); in TEST() local
1570 ASSERT_TRUE(minidump.Read()); in TEST()
1571 ASSERT_EQ(1U, minidump.GetDirectoryEntryCount()); in TEST()
1573 MinidumpException *md_exception = minidump.GetException(); in TEST()