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

Side by Side 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, 9 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/processor/microdump.cc ('k') | src/processor/testdata/microdump-multiple.dmp » ('j') | 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) 2014, Google Inc. 1 // Copyright (c) 2014, 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 ASSERT_EQ("x86", state.system_info()->cpu); 205 ASSERT_EQ("x86", state.system_info()->cpu);
206 ASSERT_EQ("asus/WW_Z00A/Z00A:5.0/LRX21V/2.19.40.22_20150627_5104_user:user/" 206 ASSERT_EQ("asus/WW_Z00A/Z00A:5.0/LRX21V/2.19.40.22_20150627_5104_user:user/"
207 "release-keys", state.system_info()->os_version); 207 "release-keys", state.system_info()->os_version);
208 ASSERT_EQ(56U, state.threads()->at(0)->frames()->size()); 208 ASSERT_EQ(56U, state.threads()->at(0)->frames()->size());
209 ASSERT_EQ("libc.so", 209 ASSERT_EQ("libc.so",
210 state.threads()->at(0)->frames()->at(0)->module->debug_file()); 210 state.threads()->at(0)->frames()->at(0)->module->debug_file());
211 // TODO(mmandlis): Get symbols for the test X86 microdump and test function 211 // TODO(mmandlis): Get symbols for the test X86 microdump and test function
212 // names. 212 // names.
213 } 213 }
214 214
215 TEST_F(MicrodumpProcessorTest, TestProcessMultiple) {
216 ProcessState state;
217 AnalyzeDump("microdump-multiple.dmp", false /* omit_symbols */,
218 6 /* expected_cpu_count */, &state);
219 ASSERT_EQ(133U, state.modules()->module_count());
220 ASSERT_EQ("arm", state.system_info()->cpu);
221 ASSERT_EQ("lge/p1_tmo_us/p1:6.0/MRA58K/1603210524c8d:user/release-keys",
222 state.system_info()->os_version);
223 ASSERT_EQ(2U, state.threads()->at(0)->frames()->size());
224 }
225
215 } // namespace 226 } // namespace
216 227
217 int main(int argc, char* argv[]) { 228 int main(int argc, char* argv[]) {
218 ::testing::InitGoogleTest(&argc, argv); 229 ::testing::InitGoogleTest(&argc, argv);
219 return RUN_ALL_TESTS(); 230 return RUN_ALL_TESTS();
220 } 231 }
OLDNEW
« 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