Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/processor/minidump_processor_unittest.cc

Issue 1849933002: Add the TID to the CallStack. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/processor/minidump_processor.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006, Google Inc. 1 // Copyright (c) 2006, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 google_breakpad::PROCESS_OK); 407 google_breakpad::PROCESS_OK);
408 ASSERT_EQ(state.system_info()->os, kSystemInfoOS); 408 ASSERT_EQ(state.system_info()->os, kSystemInfoOS);
409 ASSERT_EQ(state.system_info()->os_short, kSystemInfoOSShort); 409 ASSERT_EQ(state.system_info()->os_short, kSystemInfoOSShort);
410 ASSERT_EQ(state.system_info()->os_version, kSystemInfoOSVersion); 410 ASSERT_EQ(state.system_info()->os_version, kSystemInfoOSVersion);
411 ASSERT_EQ(state.system_info()->cpu, kSystemInfoCPU); 411 ASSERT_EQ(state.system_info()->cpu, kSystemInfoCPU);
412 ASSERT_EQ(state.system_info()->cpu_info, kSystemInfoCPUInfo); 412 ASSERT_EQ(state.system_info()->cpu_info, kSystemInfoCPUInfo);
413 ASSERT_TRUE(state.crashed()); 413 ASSERT_TRUE(state.crashed());
414 ASSERT_EQ(state.crash_reason(), "EXCEPTION_ACCESS_VIOLATION_WRITE"); 414 ASSERT_EQ(state.crash_reason(), "EXCEPTION_ACCESS_VIOLATION_WRITE");
415 ASSERT_EQ(state.crash_address(), 0x45U); 415 ASSERT_EQ(state.crash_address(), 0x45U);
416 ASSERT_EQ(state.threads()->size(), size_t(1)); 416 ASSERT_EQ(state.threads()->size(), size_t(1));
417 EXPECT_EQ((*state.threads())[0]->tid(), 3060);
417 ASSERT_EQ(state.requesting_thread(), 0); 418 ASSERT_EQ(state.requesting_thread(), 0);
418 EXPECT_EQ(1171480435U, state.time_date_stamp()); 419 EXPECT_EQ(1171480435U, state.time_date_stamp());
419 EXPECT_EQ(1171480435U, state.process_create_time()); 420 EXPECT_EQ(1171480435U, state.process_create_time());
420 421
421 CallStack *stack = state.threads()->at(0); 422 CallStack *stack = state.threads()->at(0);
422 ASSERT_TRUE(stack); 423 ASSERT_TRUE(stack);
423 ASSERT_EQ(stack->frames()->size(), 4U); 424 ASSERT_EQ(stack->frames()->size(), 4U);
424 425
425 ASSERT_TRUE(stack->frames()->at(0)->module); 426 ASSERT_TRUE(stack->frames()->at(0)->module);
426 ASSERT_EQ(stack->frames()->at(0)->module->base_address(), 0x400000U); 427 ASSERT_EQ(stack->frames()->at(0)->module->base_address(), 0x400000U);
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 ASSERT_EQ(1U, state.threads()->size()); 636 ASSERT_EQ(1U, state.threads()->size());
636 ASSERT_EQ(0U, state.threads()->at(0)->frames()->size()); 637 ASSERT_EQ(0U, state.threads()->at(0)->frames()->size());
637 } 638 }
638 639
639 } // namespace 640 } // namespace
640 641
641 int main(int argc, char *argv[]) { 642 int main(int argc, char *argv[]) {
642 ::testing::InitGoogleTest(&argc, argv); 643 ::testing::InitGoogleTest(&argc, argv);
643 return RUN_ALL_TESTS(); 644 return RUN_ALL_TESTS();
644 } 645 }
OLDNEW
« no previous file with comments | « src/processor/minidump_processor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698