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

Unified Diff: third_party/boringssl/boringssl_unittest.cc

Issue 1136743004: Roll src/third_party/boringssl/src 68de407:771a138 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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_tests.gypi ('k') | third_party/boringssl/err_data.c » ('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 52bac991f21b092662fd062e81e95c4ff96281bc..3f765bf6159c83c1509c8458bfd002610e16ab2d 100644
--- a/third_party/boringssl/boringssl_unittest.cc
+++ b/third_party/boringssl/boringssl_unittest.cc
@@ -157,10 +157,6 @@ TEST(BoringSSL, ByteString) {
TestSimple("bytestring_test");
}
-TEST(BoringSSL, ConstantTime) {
- TestSimple("constant_time_test");
-}
-
TEST(BoringSSL, Cipher) {
base::FilePath data_file;
ASSERT_TRUE(CryptoCipherTestPath(&data_file));
@@ -172,6 +168,14 @@ TEST(BoringSSL, Cipher) {
TestProcess("cipher_test", args);
}
+TEST(BoringSSL, CMAC) {
+ TestSimple("cmac_test");
+}
+
+TEST(BoringSSL, ConstantTime) {
+ TestSimple("constant_time_test");
+}
+
TEST(BoringSSL, DH) {
TestSimple("dh_test");
}
@@ -201,7 +205,16 @@ TEST(BoringSSL, GCM) {
}
TEST(BoringSSL, HMAC) {
- TestSimple("hmac_test");
+ base::FilePath data_file;
+ ASSERT_TRUE(BoringSSLPath(&data_file));
+ data_file = data_file.Append(FILE_PATH_LITERAL("crypto"));
+ data_file = data_file.Append(FILE_PATH_LITERAL("hmac"));
+ data_file = data_file.Append(FILE_PATH_LITERAL("hmac_tests.txt"));
+
+ std::vector<base::CommandLine::StringType> args;
+ args.push_back(data_file.value());
+
+ TestProcess("hmac_test", args);
}
TEST(BoringSSL, LH) {
@@ -225,7 +238,34 @@ TEST(BoringSSL, ExampleMul) {
}
TEST(BoringSSL, EVP) {
- TestSimple("evp_test");
+ base::FilePath data_file;
+ ASSERT_TRUE(BoringSSLPath(&data_file));
+ data_file = data_file.Append(FILE_PATH_LITERAL("crypto"));
+ data_file = data_file.Append(FILE_PATH_LITERAL("evp"));
+ data_file = data_file.Append(FILE_PATH_LITERAL("evp_tests.txt"));
+
+ std::vector<base::CommandLine::StringType> args;
+ args.push_back(data_file.value());
+
+ TestProcess("evp_test", args);
+}
+
+// evp_test is also run on hmac_test's input.
+TEST(BoringSSL, EVPHMAC) {
+ base::FilePath data_file;
+ ASSERT_TRUE(BoringSSLPath(&data_file));
+ data_file = data_file.Append(FILE_PATH_LITERAL("crypto"));
+ data_file = data_file.Append(FILE_PATH_LITERAL("hmac"));
+ data_file = data_file.Append(FILE_PATH_LITERAL("hmac_tests.txt"));
+
+ std::vector<base::CommandLine::StringType> args;
+ args.push_back(data_file.value());
+
+ TestProcess("evp_test", args);
+}
+
+TEST(BoringSSL, EVPExtra) {
+ TestSimple("evp_extra_test");
}
TEST(BoringSSL, SSL) {
« no previous file with comments | « third_party/boringssl/boringssl_tests.gypi ('k') | third_party/boringssl/err_data.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698