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 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHMS_TEST_HELPERS_H_ | 5 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHMS_TEST_HELPERS_H_ |
6 #define COMPONENTS_WEBCRYPTO_ALGORITHMS_TEST_HELPERS_H_ | 6 #define COMPONENTS_WEBCRYPTO_ALGORITHMS_TEST_HELPERS_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <ostream> | 10 #include <ostream> |
9 #include <string> | 11 #include <string> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" | 16 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" |
15 #include "third_party/WebKit/public/platform/WebCryptoKey.h" | 17 #include "third_party/WebKit/public/platform/WebCryptoKey.h" |
16 | 18 |
17 #define EXPECT_BYTES_EQ(expected, actual) \ | 19 #define EXPECT_BYTES_EQ(expected, actual) \ |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 blink::WebCryptoAlgorithmId hash_id); | 229 blink::WebCryptoAlgorithmId hash_id); |
228 | 230 |
229 // Creates an import algorithm for EC keys. | 231 // Creates an import algorithm for EC keys. |
230 blink::WebCryptoAlgorithm CreateEcImportAlgorithm( | 232 blink::WebCryptoAlgorithm CreateEcImportAlgorithm( |
231 blink::WebCryptoAlgorithmId id, | 233 blink::WebCryptoAlgorithmId id, |
232 blink::WebCryptoNamedCurve named_curve); | 234 blink::WebCryptoNamedCurve named_curve); |
233 | 235 |
234 } // namespace webcrypto | 236 } // namespace webcrypto |
235 | 237 |
236 #endif // COMPONENTS_WEBCRYPTO_ALGORITHMS_TEST_HELPERS_H_ | 238 #endif // COMPONENTS_WEBCRYPTO_ALGORITHMS_TEST_HELPERS_H_ |
OLD | NEW |