OLD | NEW |
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 Loading... |
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 EXPECT_EQ((*state.threads())[0]->tid(), 3060U); |
418 ASSERT_EQ(state.requesting_thread(), 0); | 418 ASSERT_EQ(state.requesting_thread(), 0); |
419 EXPECT_EQ(1171480435U, state.time_date_stamp()); | 419 EXPECT_EQ(1171480435U, state.time_date_stamp()); |
420 EXPECT_EQ(1171480435U, state.process_create_time()); | 420 EXPECT_EQ(1171480435U, state.process_create_time()); |
421 | 421 |
422 CallStack *stack = state.threads()->at(0); | 422 CallStack *stack = state.threads()->at(0); |
423 ASSERT_TRUE(stack); | 423 ASSERT_TRUE(stack); |
424 ASSERT_EQ(stack->frames()->size(), 4U); | 424 ASSERT_EQ(stack->frames()->size(), 4U); |
425 | 425 |
426 ASSERT_TRUE(stack->frames()->at(0)->module); | 426 ASSERT_TRUE(stack->frames()->at(0)->module); |
427 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 Loading... |
636 ASSERT_EQ(1U, state.threads()->size()); | 636 ASSERT_EQ(1U, state.threads()->size()); |
637 ASSERT_EQ(0U, state.threads()->at(0)->frames()->size()); | 637 ASSERT_EQ(0U, state.threads()->at(0)->frames()->size()); |
638 } | 638 } |
639 | 639 |
640 } // namespace | 640 } // namespace |
641 | 641 |
642 int main(int argc, char *argv[]) { | 642 int main(int argc, char *argv[]) { |
643 ::testing::InitGoogleTest(&argc, argv); | 643 ::testing::InitGoogleTest(&argc, argv); |
644 return RUN_ALL_TESTS(); | 644 return RUN_ALL_TESTS(); |
645 } | 645 } |
OLD | NEW |