aboutsummaryrefslogtreecommitdiff
path: root/src/client/windows/unittests
diff options
context:
space:
mode:
authormark@chromium.org <mark@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-07-25 15:34:00 +0000
committermark@chromium.org <mark@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-07-25 15:34:00 +0000
commitc5782715455a9bd7d9d03d5d9a429e4228b7f090 (patch)
tree7105d294d634c24509c16185e1991b27f50d6d8b /src/client/windows/unittests
parentSpeculatively back out r989 per http://codereview.chromium.org/10805065/ : (diff)
downloadbreakpad-c5782715455a9bd7d9d03d5d9a429e4228b7f090.tar.xz
Speculatively back out r984. See http://codereview.chromium.org/10805065/
and http://build.chromium.org/p/chromium/builders/NACL%20Tests%20%28x64%29/builds/34563 chrome src/native_client/tests/inbrowser_crash_test/crash_dump_tester.py says that the observed failures are a symptom of crash_service.exe itself crashing. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@999 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/windows/unittests')
-rw-r--r--src/client/windows/unittests/minidump_test.cc29
1 files changed, 6 insertions, 23 deletions
diff --git a/src/client/windows/unittests/minidump_test.cc b/src/client/windows/unittests/minidump_test.cc
index f47ee598..ab7ae3b7 100644
--- a/src/client/windows/unittests/minidump_test.cc
+++ b/src/client/windows/unittests/minidump_test.cc
@@ -31,7 +31,6 @@
#include <objbase.h>
#include <dbghelp.h>
-#include "../common/ipc_protocol.h"
#include "../crash_generation/minidump_generator.h"
#include "dump_analysis.h" // NOLINT
@@ -87,8 +86,7 @@ class MinidumpTest: public testing::Test {
}
}
- bool WriteDump(ULONG flags, MDRawAssertionInfo* assert,
- google_breakpad::CustomDataStream* custom_data) {
+ bool WriteDump(ULONG flags) {
using google_breakpad::MinidumpGenerator;
// Fake exception is access violation on write to this.
@@ -114,8 +112,7 @@ class MinidumpTest: public testing::Test {
::GetCurrentThreadId(),
::GetCurrentThreadId(),
&ex_ptrs,
- assert,
- custom_data,
+ NULL,
static_cast<MINIDUMP_TYPE>(flags),
TRUE,
&dump_file_,
@@ -180,7 +177,7 @@ TEST_F(MinidumpTest, Version) {
}
TEST_F(MinidumpTest, Normal) {
- EXPECT_TRUE(WriteDump(MiniDumpNormal, NULL, NULL));
+ EXPECT_TRUE(WriteDump(MiniDumpNormal));
DumpAnalysis mini(dump_file_);
// We expect threads, modules and some memory.
@@ -209,13 +206,10 @@ TEST_F(MinidumpTest, Normal) {
// We expect no off-stack memory in this dump.
EXPECT_FALSE(mini.HasMemory(this));
-
- // We do not expect a custom data stream.
- EXPECT_FALSE(mini.HasStream(MD_CUSTOM_DATA_STREAM));
}
TEST_F(MinidumpTest, SmallDump) {
- ASSERT_TRUE(WriteDump(kSmallDumpType, NULL, NULL));
+ ASSERT_TRUE(WriteDump(kSmallDumpType));
DumpAnalysis mini(dump_file_);
EXPECT_TRUE(mini.HasStream(ThreadListStream));
@@ -246,7 +240,7 @@ TEST_F(MinidumpTest, SmallDump) {
}
TEST_F(MinidumpTest, LargerDump) {
- ASSERT_TRUE(WriteDump(kLargerDumpType, NULL, NULL));
+ ASSERT_TRUE(WriteDump(kLargerDumpType));
DumpAnalysis mini(dump_file_);
// The dump should have all of these streams.
@@ -278,7 +272,7 @@ TEST_F(MinidumpTest, LargerDump) {
}
TEST_F(MinidumpTest, FullDump) {
- ASSERT_TRUE(WriteDump(kFullDumpType, NULL, NULL));
+ ASSERT_TRUE(WriteDump(kFullDumpType));
ASSERT_TRUE(dump_file_ != L"");
ASSERT_TRUE(full_dump_file_ != L"");
DumpAnalysis mini(dump_file_);
@@ -335,15 +329,4 @@ TEST_F(MinidumpTest, FullDump) {
EXPECT_FALSE(full.HasStream(TokenStream));
}
-TEST_F(MinidumpTest, CustomData) {
- google_breakpad::CustomDataStream custom_data;
- custom_data.size = 1;
- custom_data.stream[0] = 'A';
- EXPECT_TRUE(WriteDump(MiniDumpNormal, NULL, &custom_data));
- DumpAnalysis mini(dump_file_);
-
- // We expect a custom data stream.
- EXPECT_TRUE(mini.HasStream(MD_CUSTOM_DATA_STREAM));
-}
-
} // namespace