Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / boringssl / boringssl_unittest.cc
index 9ed97d5..1a62cac 100644 (file)
@@ -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 &&
@@ -216,8 +219,8 @@ TEST(BoringSSL, ExampleMul) {
   TestSimple("example_mul");
 }
 
-TEST(BoringSSL, ExampleSign) {
-  TestSimple("example_sign");
+TEST(BoringSSL, EVP) {
+  TestSimple("evp_test");
 }
 
 TEST(BoringSSL, SSL) {