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

Unified Diff: third_party/boringssl/boringssl_unittest.cc

Issue 618363002: Roll BoringSSL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix build Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/boringssl/boringssl.gypi ('k') | third_party/boringssl/linux-x86_64/crypto/rc4/rc4-x86_64.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boringssl/boringssl_unittest.cc
diff --git a/third_party/boringssl/boringssl_unittest.cc b/third_party/boringssl/boringssl_unittest.cc
index 9ed97d551b845e50e68e32bc72a172198ddd25cc..b0289215daba46117e9b025fe8db1492386e183e 100644
--- a/third_party/boringssl/boringssl_unittest.cc
+++ b/third_party/boringssl/boringssl_unittest.cc
@@ -12,6 +12,7 @@
#include "base/logging.h"
#include "base/path_service.h"
#include "base/process/launch.h"
+#include "base/strings/string_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
@@ -30,6 +31,8 @@ void TestProcess(const std::string& name,
std::string output;
EXPECT_TRUE(base::GetAppOutput(cmd, &output));
+ // Account for Windows line endings.
+ ReplaceSubstringsAfterOffset(&output, 0, "\r\n", "\n");
const bool ok = output.size() >= 5 &&
memcmp("PASS\n", &output[output.size() - 5], 5) == 0 &&
« no previous file with comments | « third_party/boringssl/boringssl.gypi ('k') | third_party/boringssl/linux-x86_64/crypto/rc4/rc4-x86_64.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698