Chromium Code Reviews| Index: components/webcrypto/algorithms/rsa_oaep_unittest.cc |
| diff --git a/components/webcrypto/algorithms/rsa_oaep_unittest.cc b/components/webcrypto/algorithms/rsa_oaep_unittest.cc |
| index a30d329200cc3d41354324b4d7acb4682ddce195..66368ad73eb4bffc2429dfb8bc51edf3774b98ea 100644 |
| --- a/components/webcrypto/algorithms/rsa_oaep_unittest.cc |
| +++ b/components/webcrypto/algorithms/rsa_oaep_unittest.cc |
| @@ -4,7 +4,6 @@ |
| #include "base/base64url.h" |
| #include "base/logging.h" |
| -#include "base/stl_util.h" |
| #include "components/webcrypto/algorithm_dispatch.h" |
| #include "components/webcrypto/algorithms/test_helpers.h" |
| #include "components/webcrypto/crypto_data.h" |
| @@ -24,7 +23,7 @@ blink::WebCryptoAlgorithm CreateRsaOaepAlgorithm( |
| return blink::WebCryptoAlgorithm::adoptParamsAndCreate( |
| blink::WebCryptoAlgorithmIdRsaOaep, |
| new blink::WebCryptoRsaOaepParams( |
| - !label.empty(), vector_as_array(&label), |
| + !label.empty(), label.data(), |
| static_cast<unsigned int>(label.size()))); |
| } |
| @@ -33,7 +32,7 @@ std::string Base64EncodeUrlSafe(const std::vector<uint8_t>& input) { |
| // https://tools.ietf.org/html/draft-ietf-jose-json-web-signature-36#section-2 |
| std::string base64url_encoded; |
| base::Base64UrlEncode( |
| - base::StringPiece(reinterpret_cast<const char*>(vector_as_array(&input)), |
| + base::StringPiece(reinterpret_cast<const char*>(input.data()), |
|
eroman
2015/11/20 00:35:14
side note: wonder if we should have an automatic t
davidben
2015/11/20 19:12:50
Yeah, we certainly need something. Doing these rei
|
| input.size()), |
| base::Base64UrlEncodePolicy::OMIT_PADDING, &base64url_encoded); |
| return base64url_encoded; |