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

Issue 936153002: Add FileReaderInterface. Move StringFileWriter to StringFile and (Closed)

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

Description

Add FileReaderInterface. Move StringFileWriter to StringFile and implement the new interface. The upcoming minidump reader will get minidump data from a FileReaderInterface. For ease of testing, a string-based implementation is provided. There wasn’t a good reason to have a separate StringFileReader and StringFileWriter, so I combined them into a single StringFile. TEST=util_test StringFile.* R=rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/583233cf78e9767f806b9897b1bc9881dccbc815

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address review feedback #

Total comments: 1

Patch Set 3 : Remove unused #include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1384 lines, -1201 lines) Patch
M minidump/minidump_context_writer_test.cc View 8 chunks +23 lines, -23 lines 0 comments Download
M minidump/minidump_crashpad_info_writer_test.cc View 9 chunks +22 lines, -22 lines 0 comments Download
M minidump/minidump_exception_writer_test.cc View 7 chunks +15 lines, -15 lines 0 comments Download
M minidump/minidump_file_writer_test.cc View 13 chunks +49 lines, -49 lines 0 comments Download
M minidump/minidump_location_descriptor_list_writer_test.cc View 5 chunks +13 lines, -13 lines 0 comments Download
M minidump/minidump_memory_writer_test.cc View 12 chunks +23 lines, -23 lines 0 comments Download
M minidump/minidump_misc_info_writer_test.cc View 14 chunks +40 lines, -40 lines 0 comments Download
M minidump/minidump_module_crashpad_info_writer_test.cc View 15 chunks +58 lines, -58 lines 0 comments Download
M minidump/minidump_module_writer_test.cc View 14 chunks +33 lines, -33 lines 0 comments Download
M minidump/minidump_rva_list_writer_test.cc View 4 chunks +13 lines, -13 lines 0 comments Download
M minidump/minidump_simple_string_dictionary_writer_test.cc View 9 chunks +42 lines, -42 lines 0 comments Download
M minidump/minidump_string_writer_test.cc View 7 chunks +33 lines, -33 lines 0 comments Download
M minidump/minidump_system_info_writer_test.cc View 8 chunks +21 lines, -21 lines 0 comments Download
M minidump/minidump_thread_writer_test.cc View 15 chunks +33 lines, -33 lines 0 comments Download
M minidump/minidump_writable_test.cc View 24 chunks +146 lines, -146 lines 0 comments Download
A util/file/file_reader.h View 1 1 chunk +140 lines, -0 lines 0 comments Download
A util/file/file_reader.cc View 1 1 chunk +88 lines, -0 lines 0 comments Download
A util/file/file_seeker.h View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
M util/file/file_writer.h View 1 7 chunks +12 lines, -15 lines 0 comments Download
M util/file/file_writer.cc View 1 2 chunks +3 lines, -12 lines 0 comments Download
A + util/file/string_file.h View 1 3 chunks +22 lines, -12 lines 0 comments Download
A + util/file/string_file.cc View 1 3 chunks +40 lines, -7 lines 0 comments Download
A util/file/string_file_test.cc View 1 chunk +470 lines, -0 lines 0 comments Download
D util/file/string_file_writer.h View 1 chunk +0 lines, -70 lines 0 comments Download
D util/file/string_file_writer.cc View 1 chunk +0 lines, -138 lines 0 comments Download
D util/file/string_file_writer_test.cc View 1 chunk +0 lines, -380 lines 0 comments Download
M util/util.gyp View 1 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Mark Mentovai
The changes in minidump are almost all mechanical, made by sed. It’s unfortunate that git ...
5 years, 10 months ago (2015-02-18 17:58:07 UTC) #1
Mark Mentovai
The changes in minidump are almost all mechanical, made by sed. It’s unfortunate that git ...
5 years, 10 months ago (2015-02-18 17:58:19 UTC) #3
Robert Sesek
https://codereview.chromium.org/936153002/diff/1/util/file/file_reader.cc File util/file/file_reader.cc (right): https://codereview.chromium.org/936153002/diff/1/util/file/file_reader.cc#newcode31 util/file/file_reader.cc:31: // TODO(mark): Read no more than SSIZE_MAX bytes in ...
5 years, 10 months ago (2015-02-18 18:44:28 UTC) #4
Mark Mentovai
All feedback addressed. Updated.
5 years, 10 months ago (2015-02-18 19:07:20 UTC) #5
Robert Sesek
LGTM https://codereview.chromium.org/936153002/diff/20001/util/file/file_seeker.h File util/file/file_seeker.h (right): https://codereview.chromium.org/936153002/diff/20001/util/file/file_seeker.h#newcode18 util/file/file_seeker.h:18: #include <sys/types.h> Unused?
5 years, 10 months ago (2015-02-18 19:13:19 UTC) #6
Mark Mentovai
5 years, 10 months ago (2015-02-18 19:15:42 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
583233cf78e9767f806b9897b1bc9881dccbc815 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698