OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |