| 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/test/test_helpers.h" | 5 #include "components/webcrypto/algorithms/test_helpers.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| 11 #include "base/json/json_writer.h" | 11 #include "base/json/json_writer.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
| 15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
| (...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 return blink::WebCryptoNamedCurveP384; | 632 return blink::WebCryptoNamedCurveP384; |
| 633 if (curve_str == "P-521") | 633 if (curve_str == "P-521") |
| 634 return blink::WebCryptoNamedCurveP521; | 634 return blink::WebCryptoNamedCurveP521; |
| 635 else | 635 else |
| 636 ADD_FAILURE() << "Unrecognized curve name: " << curve_str; | 636 ADD_FAILURE() << "Unrecognized curve name: " << curve_str; |
| 637 | 637 |
| 638 return blink::WebCryptoNamedCurveP384; | 638 return blink::WebCryptoNamedCurveP384; |
| 639 } | 639 } |
| 640 | 640 |
| 641 } // namespace webcrypto | 641 } // namespace webcrypto |
| OLD | NEW |