| 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 <stddef.h> | 
 |    6 #include <stdint.h> | 
 |    7  | 
|    5 #include "base/base64url.h" |    8 #include "base/base64url.h" | 
|    6 #include "base/logging.h" |    9 #include "base/logging.h" | 
 |   10 #include "base/macros.h" | 
|    7 #include "components/webcrypto/algorithm_dispatch.h" |   11 #include "components/webcrypto/algorithm_dispatch.h" | 
|    8 #include "components/webcrypto/algorithms/test_helpers.h" |   12 #include "components/webcrypto/algorithms/test_helpers.h" | 
|    9 #include "components/webcrypto/crypto_data.h" |   13 #include "components/webcrypto/crypto_data.h" | 
|   10 #include "components/webcrypto/jwk.h" |   14 #include "components/webcrypto/jwk.h" | 
|   11 #include "components/webcrypto/status.h" |   15 #include "components/webcrypto/status.h" | 
|   12 #include "testing/gtest/include/gtest/gtest.h" |   16 #include "testing/gtest/include/gtest/gtest.h" | 
|   13 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |   17 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" | 
|   14 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" |   18 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" | 
|   15  |   19  | 
|   16 namespace webcrypto { |   20 namespace webcrypto { | 
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  506     EXPECT_TRUE(public_key2.extractable()); |  510     EXPECT_TRUE(public_key2.extractable()); | 
|  507     EXPECT_EQ(import_algorithm.id(), public_key2.algorithm().id()); |  511     EXPECT_EQ(import_algorithm.id(), public_key2.algorithm().id()); | 
|  508  |  512  | 
|  509     // TODO(eroman): Export the SPKI and verify matches. |  513     // TODO(eroman): Export the SPKI and verify matches. | 
|  510   } |  514   } | 
|  511 } |  515 } | 
|  512  |  516  | 
|  513 }  // namespace |  517 }  // namespace | 
|  514  |  518  | 
|  515 }  // namespace webcrypto |  519 }  // namespace webcrypto | 
| OLD | NEW |