| 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 "components/webcrypto/algorithms/test_helpers.h" | 5 #include "components/webcrypto/algorithms/test_helpers.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <algorithm> | 9 #include <algorithm> |
| 8 | 10 |
| 9 #include "base/base64url.h" | 11 #include "base/base64url.h" |
| 10 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
| 11 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
| 12 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
| 13 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" |
| 14 #include "base/path_service.h" | 17 #include "base/path_service.h" |
| 15 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 16 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
| 17 #include "base/values.h" | 20 #include "base/values.h" |
| 18 #include "components/test_runner/test_common.h" | 21 #include "components/test_runner/test_common.h" |
| 19 #include "components/webcrypto/algorithm_dispatch.h" | 22 #include "components/webcrypto/algorithm_dispatch.h" |
| 20 #include "components/webcrypto/crypto_data.h" | 23 #include "components/webcrypto/crypto_data.h" |
| 21 #include "components/webcrypto/generate_key_result.h" | 24 #include "components/webcrypto/generate_key_result.h" |
| 22 #include "components/webcrypto/jwk.h" | 25 #include "components/webcrypto/jwk.h" |
| 23 #include "components/webcrypto/status.h" | 26 #include "components/webcrypto/status.h" |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 } | 689 } |
| 687 | 690 |
| 688 blink::WebCryptoAlgorithm CreateEcImportAlgorithm( | 691 blink::WebCryptoAlgorithm CreateEcImportAlgorithm( |
| 689 blink::WebCryptoAlgorithmId id, | 692 blink::WebCryptoAlgorithmId id, |
| 690 blink::WebCryptoNamedCurve named_curve) { | 693 blink::WebCryptoNamedCurve named_curve) { |
| 691 return blink::WebCryptoAlgorithm::adoptParamsAndCreate( | 694 return blink::WebCryptoAlgorithm::adoptParamsAndCreate( |
| 692 id, new blink::WebCryptoEcKeyImportParams(named_curve)); | 695 id, new blink::WebCryptoEcKeyImportParams(named_curve)); |
| 693 } | 696 } |
| 694 | 697 |
| 695 } // namespace webcrypto | 698 } // namespace webcrypto |
| OLD | NEW |