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:
Patrik Höglund
2020-03-12 09:39:40 +01:00
committed by Commit Bot
parent f092e4d0ff
commit b8e69efcee
7 changed files with 41 additions and 15 deletions

View File

@ -861,7 +861,7 @@ TEST(IsacFixTest, Kenny) {
(runtime * 10000) / length_file, "us", false);
if (chartjson_result_file) {
webrtc::test::WritePerfResults(chartjson_result_file);
EXPECT_TRUE(webrtc::test::WritePerfResults(chartjson_result_file));
}
fclose(inp);