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

Unified Diff: src/processor/microdump_processor_unittest.cc

Issue 1742843002: Properly handle microdump processing, when the system_log file contains an incomplete microdump sec… (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Reduce size of the test microdump file. Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/processor/microdump.cc ('k') | src/processor/testdata/microdump-multiple.dmp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/processor/microdump_processor_unittest.cc
diff --git a/src/processor/microdump_processor_unittest.cc b/src/processor/microdump_processor_unittest.cc
index 7dcfe44baa038c41b64a5e511c0b3070f8bbc437..a507b627f2a61acda9d858ce3cc2fed97d59ad18 100644
--- a/src/processor/microdump_processor_unittest.cc
+++ b/src/processor/microdump_processor_unittest.cc
@@ -212,6 +212,17 @@ TEST_F(MicrodumpProcessorTest, TestProcessX86) {
// names.
}
+TEST_F(MicrodumpProcessorTest, TestProcessMultiple) {
+ ProcessState state;
+ AnalyzeDump("microdump-multiple.dmp", false /* omit_symbols */,
+ 6 /* expected_cpu_count */, &state);
+ ASSERT_EQ(133U, state.modules()->module_count());
+ ASSERT_EQ("arm", state.system_info()->cpu);
+ ASSERT_EQ("lge/p1_tmo_us/p1:6.0/MRA58K/1603210524c8d:user/release-keys",
+ state.system_info()->os_version);
+ ASSERT_EQ(2U, state.threads()->at(0)->frames()->size());
+}
+
} // namespace
int main(int argc, char* argv[]) {
« no previous file with comments | « src/processor/microdump.cc ('k') | src/processor/testdata/microdump-multiple.dmp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698