OLD | NEW |
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 } | 193 } |
194 | 194 |
195 TEST(BoringSSL, EC) { | 195 TEST(BoringSSL, EC) { |
196 TestSimple("ec_test"); | 196 TestSimple("ec_test"); |
197 } | 197 } |
198 | 198 |
199 TEST(BoringSSL, ECDSA) { | 199 TEST(BoringSSL, ECDSA) { |
200 TestSimple("ecdsa_test"); | 200 TestSimple("ecdsa_test"); |
201 } | 201 } |
202 | 202 |
| 203 TEST(BoringSSL, ED25519) { |
| 204 base::FilePath data_file; |
| 205 ASSERT_TRUE(BoringSSLPath(&data_file)); |
| 206 data_file = data_file.Append(FILE_PATH_LITERAL("crypto")); |
| 207 data_file = data_file.Append(FILE_PATH_LITERAL("curve25519")); |
| 208 data_file = data_file.Append(FILE_PATH_LITERAL("ed25519_tests.txt")); |
| 209 |
| 210 std::vector<base::CommandLine::StringType> args; |
| 211 args.push_back(data_file.value()); |
| 212 |
| 213 TestProcess("ed25519_test", args); |
| 214 } |
| 215 |
203 TEST(BoringSSL, ERR) { | 216 TEST(BoringSSL, ERR) { |
204 TestSimple("err_test"); | 217 TestSimple("err_test"); |
205 } | 218 } |
206 | 219 |
207 TEST(BoringSSL, EVP) { | 220 TEST(BoringSSL, EVP) { |
208 base::FilePath data_file; | 221 base::FilePath data_file; |
209 ASSERT_TRUE(BoringSSLPath(&data_file)); | 222 ASSERT_TRUE(BoringSSLPath(&data_file)); |
210 data_file = data_file.Append(FILE_PATH_LITERAL("crypto")); | 223 data_file = data_file.Append(FILE_PATH_LITERAL("crypto")); |
211 data_file = data_file.Append(FILE_PATH_LITERAL("evp")); | 224 data_file = data_file.Append(FILE_PATH_LITERAL("evp")); |
212 data_file = data_file.Append(FILE_PATH_LITERAL("evp_tests.txt")); | 225 data_file = data_file.Append(FILE_PATH_LITERAL("evp_tests.txt")); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 TestSimple("tab_test"); | 312 TestSimple("tab_test"); |
300 } | 313 } |
301 | 314 |
302 TEST(BoringSSL, Thread) { | 315 TEST(BoringSSL, Thread) { |
303 TestSimple("thread_test"); | 316 TestSimple("thread_test"); |
304 } | 317 } |
305 | 318 |
306 TEST(BoringSSL, V3NameTest) { | 319 TEST(BoringSSL, V3NameTest) { |
307 TestSimple("v3name_test"); | 320 TestSimple("v3name_test"); |
308 } | 321 } |
| 322 |
| 323 TEST(BoringSSL, X25519) { |
| 324 TestSimple("x25519_test"); |
| 325 } |
OLD | NEW |