Write protos as binary.
We need to write protos as "wb" and not "w", otherwise we get CRLF on Windows which corrupts the proto. Bug: chromium:1029452 Change-Id: Iabf841405134d7bc2523ac48219ca7cb9d8214c1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/170320 Commit-Queue: Patrik Höglund <phoglund@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30772}
This commit is contained in:
committed by
Commit Bot
parent
f092e4d0ff
commit
b8e69efcee
@ -164,7 +164,9 @@ int main(int argc, char* argv[]) {
|
||||
std::string chartjson_result_file =
|
||||
absl::GetFlag(FLAGS_chartjson_result_file);
|
||||
if (!chartjson_result_file.empty()) {
|
||||
webrtc::test::WritePerfResults(chartjson_result_file);
|
||||
if (!webrtc::test::WritePerfResults(chartjson_result_file)) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
std::string aligned_output_file = absl::GetFlag(FLAGS_aligned_output_file);
|
||||
if (!aligned_output_file.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user