Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: components/webcrypto/algorithms/rsa_oaep_unittest.cc

Issue 1461703009: Switch //components from vector_as_array to vector::data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: eroman comment Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/webcrypto/algorithms/rsa_oaep.cc ('k') | components/webcrypto/algorithms/rsa_sign.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()),
input.size()),
base::Base64UrlEncodePolicy::OMIT_PADDING, &base64url_encoded);
return base64url_encoded;
« no previous file with comments | « components/webcrypto/algorithms/rsa_oaep.cc ('k') | components/webcrypto/algorithms/rsa_sign.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698