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

Side by Side Diff: third_party/boringssl/boringssl_unittest.cc

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « testing/iossim/iossim.gyp ('k') | third_party/boringssl/err_data.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdarg.h> 5 #include <stdarg.h>
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 {FILE_PATH_LITERAL("rc4-md5-ssl3"), 109 {FILE_PATH_LITERAL("rc4-md5-ssl3"),
110 FILE_PATH_LITERAL("rc4_md5_ssl3_tests.txt")}, 110 FILE_PATH_LITERAL("rc4_md5_ssl3_tests.txt")},
111 {FILE_PATH_LITERAL("rc4-sha1-ssl3"), 111 {FILE_PATH_LITERAL("rc4-sha1-ssl3"),
112 FILE_PATH_LITERAL("rc4_sha1_ssl3_tests.txt")}, 112 FILE_PATH_LITERAL("rc4_sha1_ssl3_tests.txt")},
113 {FILE_PATH_LITERAL("aes-128-cbc-sha1-ssl3"), 113 {FILE_PATH_LITERAL("aes-128-cbc-sha1-ssl3"),
114 FILE_PATH_LITERAL("aes_128_cbc_sha1_ssl3_tests.txt")}, 114 FILE_PATH_LITERAL("aes_128_cbc_sha1_ssl3_tests.txt")},
115 {FILE_PATH_LITERAL("aes-256-cbc-sha1-ssl3"), 115 {FILE_PATH_LITERAL("aes-256-cbc-sha1-ssl3"),
116 FILE_PATH_LITERAL("aes_256_cbc_sha1_ssl3_tests.txt")}, 116 FILE_PATH_LITERAL("aes_256_cbc_sha1_ssl3_tests.txt")},
117 {FILE_PATH_LITERAL("des-ede3-cbc-sha1-ssl3"), 117 {FILE_PATH_LITERAL("des-ede3-cbc-sha1-ssl3"),
118 FILE_PATH_LITERAL("des_ede3_cbc_sha1_ssl3_tests.txt")}, 118 FILE_PATH_LITERAL("des_ede3_cbc_sha1_ssl3_tests.txt")},
119 {FILE_PATH_LITERAL("aes-128-ctr-hmac-sha256"),
120 FILE_PATH_LITERAL("aes_128_ctr_hmac_sha256.txt")},
121 {FILE_PATH_LITERAL("aes-256-ctr-hmac-sha256"),
122 FILE_PATH_LITERAL("aes_256_ctr_hmac_sha256.txt")},
119 }; 123 };
120 124
121 TEST(BoringSSL, AEADs) { 125 TEST(BoringSSL, AEADs) {
122 base::FilePath test_vector_dir; 126 base::FilePath test_vector_dir;
123 ASSERT_TRUE(CryptoCipherTestPath(&test_vector_dir)); 127 ASSERT_TRUE(CryptoCipherTestPath(&test_vector_dir));
124 128
125 for (size_t i = 0; i < arraysize(kAEADTests); i++) { 129 for (size_t i = 0; i < arraysize(kAEADTests); i++) {
126 const AEADTest& test = kAEADTests[i]; 130 const AEADTest& test = kAEADTests[i];
127 SCOPED_TRACE(test.name); 131 SCOPED_TRACE(test.name);
128 132
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 TestSimple("pqueue_test"); 236 TestSimple("pqueue_test");
233 } 237 }
234 238
235 TEST(BoringSSL, HKDF) { 239 TEST(BoringSSL, HKDF) {
236 TestSimple("hkdf_test"); 240 TestSimple("hkdf_test");
237 } 241 }
238 242
239 TEST(BoringSSL, PBKDF) { 243 TEST(BoringSSL, PBKDF) {
240 TestSimple("pbkdf_test"); 244 TestSimple("pbkdf_test");
241 } 245 }
OLDNEW
« no previous file with comments | « testing/iossim/iossim.gyp ('k') | third_party/boringssl/err_data.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698