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 "content/renderer/webcrypto/shared_crypto.h" | 5 #include "content/child/webcrypto/shared_crypto.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
13 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
19 #include "base/values.h" | 19 #include "base/values.h" |
| 20 #include "content/child/webcrypto/crypto_data.h" |
| 21 #include "content/child/webcrypto/webcrypto_util.h" |
20 #include "content/public/common/content_paths.h" | 22 #include "content/public/common/content_paths.h" |
21 #include "content/public/renderer/content_renderer_client.h" | |
22 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | |
23 #include "content/renderer/webcrypto/crypto_data.h" | |
24 #include "content/renderer/webcrypto/webcrypto_util.h" | |
25 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
26 #include "third_party/WebKit/public/platform/WebArrayBuffer.h" | 24 #include "third_party/WebKit/public/platform/WebArrayBuffer.h" |
27 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" | 25 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" |
28 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" | |
29 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" | 26 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |
30 #include "third_party/WebKit/public/platform/WebCryptoKey.h" | 27 #include "third_party/WebKit/public/platform/WebCryptoKey.h" |
| 28 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" |
31 #include "third_party/re2/re2/re2.h" | 29 #include "third_party/re2/re2/re2.h" |
32 | 30 |
33 // The OpenSSL implementation of WebCrypto is less complete, so don't run all of | 31 // The OpenSSL implementation of WebCrypto is less complete, so don't run all of |
34 // the tests: http://crbug.com/267888 | 32 // the tests: http://crbug.com/267888 |
35 #if defined(USE_OPENSSL) | 33 #if defined(USE_OPENSSL) |
36 #define MAYBE(test_name) DISABLED_##test_name | 34 #define MAYBE(test_name) DISABLED_##test_name |
37 #else | 35 #else |
38 #define MAYBE(test_name) test_name | 36 #define MAYBE(test_name) test_name |
39 #endif | 37 #endif |
40 | 38 |
(...skipping 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2136 test_cipher_text, | 2134 test_cipher_text, |
2137 test_authentication_tag, | 2135 test_authentication_tag, |
2138 &plain_text)); | 2136 &plain_text)); |
2139 } | 2137 } |
2140 } | 2138 } |
2141 } | 2139 } |
2142 | 2140 |
2143 } // namespace webcrypto | 2141 } // namespace webcrypto |
2144 | 2142 |
2145 } // namespace content | 2143 } // namespace content |
OLD | NEW |