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

Unified Diff: components/webcrypto/algorithms/sha_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/sha.cc ('k') | components/webcrypto/algorithms/test_helpers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/algorithms/sha_unittest.cc
diff --git a/components/webcrypto/algorithms/sha_unittest.cc b/components/webcrypto/algorithms/sha_unittest.cc
index 4e82d98763cad0876045352f745b837740e1849b..cab92394ff7fd1b6b246afd7f7e4da9facf436c0 100644
--- a/components/webcrypto/algorithms/sha_unittest.cc
+++ b/components/webcrypto/algorithms/sha_unittest.cc
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include "base/logging.h"
-#include "base/stl_util.h"
#include "base/values.h"
#include "components/webcrypto/algorithm_dispatch.h"
#include "components/webcrypto/algorithms/test_helpers.h"
@@ -69,7 +68,7 @@ TEST_F(WebCryptoShaTest, DigestSampleSetsInChunks) {
size_t chunk_length = std::min(kChunkSizeBytes, length - chunk_index);
std::vector<uint8_t> chunk(begin, begin + chunk_length);
ASSERT_TRUE(chunk.size() > 0);
- EXPECT_TRUE(digestor->consume(vector_as_array(&chunk),
+ EXPECT_TRUE(digestor->consume(chunk.data(),
static_cast<unsigned int>(chunk.size())));
chunk_index = chunk_index + chunk_length;
begin = begin + chunk_length;
« no previous file with comments | « components/webcrypto/algorithms/sha.cc ('k') | components/webcrypto/algorithms/test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698