| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 } | 150 } |
| 151 | 151 |
| 152 TEST(BoringSSL, BN) { | 152 TEST(BoringSSL, BN) { |
| 153 TestSimple("bn_test"); | 153 TestSimple("bn_test"); |
| 154 } | 154 } |
| 155 | 155 |
| 156 TEST(BoringSSL, ByteString) { | 156 TEST(BoringSSL, ByteString) { |
| 157 TestSimple("bytestring_test"); | 157 TestSimple("bytestring_test"); |
| 158 } | 158 } |
| 159 | 159 |
| 160 TEST(BoringSSL, ConstantTime) { |
| 161 TestSimple("constant_time_test"); |
| 162 } |
| 163 |
| 160 TEST(BoringSSL, Cipher) { | 164 TEST(BoringSSL, Cipher) { |
| 161 base::FilePath data_file; | 165 base::FilePath data_file; |
| 162 ASSERT_TRUE(CryptoCipherTestPath(&data_file)); | 166 ASSERT_TRUE(CryptoCipherTestPath(&data_file)); |
| 163 data_file = data_file.Append(FILE_PATH_LITERAL("cipher_test.txt")); | 167 data_file = data_file.Append(FILE_PATH_LITERAL("cipher_test.txt")); |
| 164 | 168 |
| 165 std::vector<base::CommandLine::StringType> args; | 169 std::vector<base::CommandLine::StringType> args; |
| 166 args.push_back(data_file.value()); | 170 args.push_back(data_file.value()); |
| 167 | 171 |
| 168 TestProcess("cipher_test", args); | 172 TestProcess("cipher_test", args); |
| 169 } | 173 } |
| 170 | 174 |
| 171 TEST(BoringSSL, CMAC) { | |
| 172 TestSimple("cmac_test"); | |
| 173 } | |
| 174 | |
| 175 TEST(BoringSSL, ConstantTime) { | |
| 176 TestSimple("constant_time_test"); | |
| 177 } | |
| 178 | |
| 179 TEST(BoringSSL, DH) { | 175 TEST(BoringSSL, DH) { |
| 180 TestSimple("dh_test"); | 176 TestSimple("dh_test"); |
| 181 } | 177 } |
| 182 | 178 |
| 183 TEST(BoringSSL, Digest) { | 179 TEST(BoringSSL, Digest) { |
| 184 TestSimple("digest_test"); | 180 TestSimple("digest_test"); |
| 185 } | 181 } |
| 186 | 182 |
| 187 TEST(BoringSSL, DSA) { | 183 TEST(BoringSSL, DSA) { |
| 188 TestSimple("dsa_test"); | 184 TestSimple("dsa_test"); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 TestSimple("hkdf_test"); | 240 TestSimple("hkdf_test"); |
| 245 } | 241 } |
| 246 | 242 |
| 247 TEST(BoringSSL, PBKDF) { | 243 TEST(BoringSSL, PBKDF) { |
| 248 TestSimple("pbkdf_test"); | 244 TestSimple("pbkdf_test"); |
| 249 } | 245 } |
| 250 | 246 |
| 251 TEST(BoringSSL, Thread) { | 247 TEST(BoringSSL, Thread) { |
| 252 TestSimple("thread_test"); | 248 TestSimple("thread_test"); |
| 253 } | 249 } |
| OLD | NEW |