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

Issue 899163004: win: Fixes for minidump_misc_info_writer_test.cc (Closed)

Created:
5 years, 10 months ago by scottmg
Modified:
5 years, 10 months ago
Reviewers:
Mark Mentovai
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@minidump_test-10
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

win: Fixes for minidump_misc_info_writer_test.cc MINIDUMP_MISC_INFO and MINIDUMP_MISC_INFO_2, etc. are not derived from each other in Windows' dbghelp.h, so need a reinterpret_cast. arraysize fails on Struct::Member with a big mess (below) but works ok on a local stack instance. d:\src\crashpad\crashpad\minidump\minidump_misc_info_writer_test.cc(405) : error C2664: 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>::basic_string(std::initializer_list<_Elem>,const std::allocator<char> &)' : cannot convert argument 1 from 'char' to 'const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &' with [ _Elem=char ] Reason: cannot convert from 'char' to 'const std::basic_string<char,std::char_traits<char>,std::allocator<char>>' No constructor could take the source type, or constructor overload resolution was ambiguous d:\src\crashpad\crashpad\minidump\minidump_misc_info_writer_test.cc(408) : error C2784: 'char (&ArraySizeHelper(const T (&)[N]))[N]' : could not deduce template argument for 'const T (&)[N]' from 'unknown' d:\src\crashpad\crashpad\third_party\mini_chromium\mini_chromium\base\basictypes.h(39) : see declaration of 'ArraySizeHelper' R=mark@chromium.org BUG=crashpad:1 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/2d2ad633eaae0156f8eb1a54e1c231edb9267753

Patch Set 1 #

Total comments: 5

Patch Set 2 : allow_unused_local #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -16 lines) Patch
M minidump/minidump_misc_info_writer_test.cc View 1 8 chunks +22 lines, -16 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scottmg
5 years, 10 months ago (2015-02-05 05:52:55 UTC) #1
Mark Mentovai
https://codereview.chromium.org/899163004/diff/1/minidump/minidump_misc_info_writer_test.cc File minidump/minidump_misc_info_writer_test.cc (right): https://codereview.chromium.org/899163004/diff/1/minidump/minidump_misc_info_writer_test.cc#newcode401 minidump/minidump_misc_info_writer_test.cc:401: MINIDUMP_MISC_INFO_N tmp; (void)tmp; Add ALLOW_UNUSED_LOCAL to mini_chromium and use ...
5 years, 10 months ago (2015-02-05 14:31:36 UTC) #2
scottmg
https://codereview.chromium.org/899163004/diff/1/minidump/minidump_misc_info_writer_test.cc File minidump/minidump_misc_info_writer_test.cc (right): https://codereview.chromium.org/899163004/diff/1/minidump/minidump_misc_info_writer_test.cc#newcode401 minidump/minidump_misc_info_writer_test.cc:401: MINIDUMP_MISC_INFO_N tmp; (void)tmp; On 2015/02/05 14:31:35, Mark Mentovai wrote: ...
5 years, 10 months ago (2015-02-05 17:04:28 UTC) #3
Mark Mentovai
LGTM with or after DEPS roll.
5 years, 10 months ago (2015-02-05 17:12:19 UTC) #4
scottmg
5 years, 10 months ago (2015-02-05 17:35:58 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
2d2ad633eaae0156f8eb1a54e1c231edb9267753 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698