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

Side by Side Diff: src/processor/microdump_processor_unittest.cc

Issue 1678463002: Parse additional microdump GPU line in the format: G GL_VERSION|GL_VENDOR|GL_RENDERER. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Sync 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 unified diff | Download patch
« no previous file with comments | « src/processor/microdump.cc ('k') | src/processor/stackwalk_common.cc » ('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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « src/processor/microdump.cc ('k') | src/processor/stackwalk_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698