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

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

Issue 2013893003: fix signed warning errors in unittests (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 4 years, 7 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/common/memory_unittest.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 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
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 }
OLDNEW
« no previous file with comments | « src/common/memory_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698