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

Side by Side Diff: third_party/crashpad/crashpad/minidump/minidump_system_info_writer_test.cc

Issue 2555353002: Update Crashpad to 32981a3ee9d7c2769fb27afa038fe2e194cfa329 (Closed)
Patch Set: fix readme Created 4 years 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
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 (1 << PF_XMMI_INSTRUCTIONS_AVAILABLE) | 398 (1 << PF_XMMI_INSTRUCTIONS_AVAILABLE) |
399 (1 << PF_RDTSC_INSTRUCTION_AVAILABLE) | 399 (1 << PF_RDTSC_INSTRUCTION_AVAILABLE) |
400 (1 << PF_PAE_ENABLED) | 400 (1 << PF_PAE_ENABLED) |
401 (1 << PF_XMMI64_INSTRUCTIONS_AVAILABLE) | 401 (1 << PF_XMMI64_INSTRUCTIONS_AVAILABLE) |
402 (1 << PF_SSE_DAZ_MODE_AVAILABLE) | 402 (1 << PF_SSE_DAZ_MODE_AVAILABLE) |
403 (1 << PF_NX_ENABLED) | 403 (1 << PF_NX_ENABLED) |
404 (1 << PF_SSE3_INSTRUCTIONS_AVAILABLE) | 404 (1 << PF_SSE3_INSTRUCTIONS_AVAILABLE) |
405 (1 << PF_COMPARE_EXCHANGE128) | 405 (1 << PF_COMPARE_EXCHANGE128) |
406 (1 << PF_XSAVE_ENABLED) | 406 (1 << PF_XSAVE_ENABLED) |
407 (1 << PF_RDWRFSGSBASE_AVAILABLE) | 407 (1 << PF_RDWRFSGSBASE_AVAILABLE) |
408 (1 << PF_RDRAND_INSTRUCTION_AVAILABLE); 408 (1 << PF_RDRAND_INSTRUCTION_AVAILABLE) |
409 (UINT64_C(1) << PF_RDTSCP_INSTRUCTION_AVAILABLE);
409 expect_system_info.Cpu.OtherCpuInfo.ProcessorFeatures[1] = 0; 410 expect_system_info.Cpu.OtherCpuInfo.ProcessorFeatures[1] = 0;
410 const char kOSVersionBuild[] = "13F34"; 411 const char kOSVersionBuild[] = "13F34";
411 412
412 TestSystemSnapshot system_snapshot; 413 TestSystemSnapshot system_snapshot;
413 system_snapshot.SetCPUArchitecture(kCPUArchitectureX86_64); 414 system_snapshot.SetCPUArchitecture(kCPUArchitectureX86_64);
414 system_snapshot.SetCPURevision( 415 system_snapshot.SetCPURevision(
415 (kCPUFamily << 16) | (kCPUModel << 8) | kCPUStepping); 416 (kCPUFamily << 16) | (kCPUModel << 8) | kCPUStepping);
416 system_snapshot.SetCPUCount(expect_system_info.NumberOfProcessors); 417 system_snapshot.SetCPUCount(expect_system_info.NumberOfProcessors);
417 system_snapshot.SetCPUX86Features(0x7ffafbffbfebfbff); 418 system_snapshot.SetCPUX86Features(0x7ffafbffbfebfbff);
418 system_snapshot.SetCPUX86ExtendedFeatures(0x000000212c100900); 419 system_snapshot.SetCPUX86ExtendedFeatures(0x000000212c100900);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 minidump_file_writer.AddStream(std::move(system_info_writer)); 472 minidump_file_writer.AddStream(std::move(system_info_writer));
472 473
473 StringFile string_file; 474 StringFile string_file;
474 ASSERT_DEATH_CHECK(minidump_file_writer.WriteEverything(&string_file), 475 ASSERT_DEATH_CHECK(minidump_file_writer.WriteEverything(&string_file),
475 "csd_version_"); 476 "csd_version_");
476 } 477 }
477 478
478 } // namespace 479 } // namespace
479 } // namespace test 480 } // namespace test
480 } // namespace crashpad 481 } // namespace crashpad
OLDNEW
« no previous file with comments | « third_party/crashpad/crashpad/minidump/minidump_system_info_writer.cc ('k') | third_party/crashpad/crashpad/navbar.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698