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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 | 152 |
153 ASSERT_EQ(google_breakpad::PROCESS_ERROR_NO_THREAD_LIST, result); | 153 ASSERT_EQ(google_breakpad::PROCESS_ERROR_NO_THREAD_LIST, result); |
154 } | 154 } |
155 | 155 |
156 TEST_F(MicrodumpProcessorTest, TestProcessArm) { | 156 TEST_F(MicrodumpProcessorTest, TestProcessArm) { |
157 ProcessState state; | 157 ProcessState state; |
158 AnalyzeDump("microdump-arm.dmp", &state, false /* omit_symbols */); | 158 AnalyzeDump("microdump-arm.dmp", &state, false /* omit_symbols */); |
159 | 159 |
160 ASSERT_EQ(6U, state.modules()->module_count()); | 160 ASSERT_EQ(6U, state.modules()->module_count()); |
161 ASSERT_EQ("arm", state.system_info()->cpu); | 161 ASSERT_EQ("arm", state.system_info()->cpu); |
| 162 ASSERT_EQ("OpenGL ES 3.0 V@104.0 AU@ (GIT@Id3510ff6dc)", |
| 163 state.system_info()->gl_version); |
| 164 ASSERT_EQ("Qualcomm", state.system_info()->gl_vendor); |
| 165 ASSERT_EQ("Adreno (TM) 330", state.system_info()->gl_renderer); |
162 ASSERT_EQ("OS VERSION INFO", state.system_info()->os_version); | 166 ASSERT_EQ("OS VERSION INFO", state.system_info()->os_version); |
163 ASSERT_EQ(8U, state.threads()->at(0)->frames()->size()); | 167 ASSERT_EQ(8U, state.threads()->at(0)->frames()->size()); |
164 ASSERT_EQ("MicrodumpWriterTest_Setup_Test::TestBody", | 168 ASSERT_EQ("MicrodumpWriterTest_Setup_Test::TestBody", |
165 state.threads()->at(0)->frames()->at(0)->function_name); | 169 state.threads()->at(0)->frames()->at(0)->function_name); |
166 ASSERT_EQ("testing::Test::Run", | 170 ASSERT_EQ("testing::Test::Run", |
167 state.threads()->at(0)->frames()->at(1)->function_name); | 171 state.threads()->at(0)->frames()->at(1)->function_name); |
168 ASSERT_EQ("main", | 172 ASSERT_EQ("main", |
169 state.threads()->at(0)->frames()->at(6)->function_name); | 173 state.threads()->at(0)->frames()->at(6)->function_name); |
170 ASSERT_EQ("breakpad_unittests", | 174 ASSERT_EQ("breakpad_unittests", |
171 state.threads()->at(0)->frames()->at(6)->module->code_file()); | 175 state.threads()->at(0)->frames()->at(6)->module->code_file()); |
(...skipping 16 matching lines...) Expand all Loading... |
188 ASSERT_EQ("breakpad_unittests", | 192 ASSERT_EQ("breakpad_unittests", |
189 state.threads()->at(0)->frames()->at(7)->module->code_file()); | 193 state.threads()->at(0)->frames()->at(7)->module->code_file()); |
190 } | 194 } |
191 | 195 |
192 } // namespace | 196 } // namespace |
193 | 197 |
194 int main(int argc, char* argv[]) { | 198 int main(int argc, char* argv[]) { |
195 ::testing::InitGoogleTest(&argc, argv); | 199 ::testing::InitGoogleTest(&argc, argv); |
196 return RUN_ALL_TESTS(); | 200 return RUN_ALL_TESTS(); |
197 } | 201 } |
OLD | NEW |