aboutsummaryrefslogtreecommitdiff
path: root/src/processor/stackwalker_mips64_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/processor/stackwalker_mips64_unittest.cc')
-rw-r--r--src/processor/stackwalker_mips64_unittest.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/processor/stackwalker_mips64_unittest.cc b/src/processor/stackwalker_mips64_unittest.cc
index 2a9784bf..aefcf8ee 100644
--- a/src/processor/stackwalker_mips64_unittest.cc
+++ b/src/processor/stackwalker_mips64_unittest.cc
@@ -1,5 +1,4 @@
-// Copyright (c) 2013, Google Inc.
-// All rights reserved.
+// Copyright 2013 Google LLC
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
@@ -11,7 +10,7 @@
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
-// * Neither the name of Google Inc. nor the names of its
+// * Neither the name of Google LLC nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
@@ -65,6 +64,7 @@ using google_breakpad::test_assembler::Section;
using std::vector;
using testing::_;
using testing::AnyNumber;
+using testing::DoAll;
using testing::Return;
using testing::SetArgumentPointee;
using testing::Test;
@@ -644,8 +644,10 @@ struct CFIFixture: public StackwalkerMIPSFixture {
EXPECT_EQ(0x00405000U, frame1->function_base);
}
- // The values we expect to find for the caller's registers.
- MDRawContextMIPS expected;
+ // The values we expect to find for the caller's registers. Forcibly
+ // default-init it, since it's POD and not all bits are always overwritten by
+ // the constructor.
+ MDRawContextMIPS expected{};
// The validity mask for expected.
int expected_validity;