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

Unified Diff: components/autofill/content/browser/wallet/wallet_client_unittest.cc

Issue 545193008: Use base::StringPairs where appropriate from /components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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/auto_login_parser/auto_login_parser.cc ('k') | components/leveldb_proto/leveldb_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/browser/wallet/wallet_client_unittest.cc
diff --git a/components/autofill/content/browser/wallet/wallet_client_unittest.cc b/components/autofill/content/browser/wallet/wallet_client_unittest.cc
index 98b3971d63f01a5fd4704b12087dd174e404f700..b3f3aa0dbfc9a16fa8de93b8985c34962f032ea4 100644
--- a/components/autofill/content/browser/wallet/wallet_client_unittest.cc
+++ b/components/autofill/content/browser/wallet/wallet_client_unittest.cc
@@ -802,14 +802,16 @@ class WalletClientTest : public testing::Test {
EXPECT_EQ("GoogleLogin auth=gdToken", auth_header_value);
const std::string& upload_data = fetcher->upload_data();
- std::vector<std::pair<std::string, std::string> > tokens;
+ base::StringPairs tokens;
base::SplitStringIntoKeyValuePairs(upload_data, '=', '&', &tokens);
EXPECT_EQ(tokens.size(), expected_parameter_number);
size_t num_params = 0U;
- for (size_t i = 0; i < tokens.size(); ++i) {
- const std::string& key = tokens[i].first;
- const std::string& value = tokens[i].second;
+ for (base::StringPairs::const_iterator iter = tokens.begin();
+ iter != tokens.end();
+ ++iter) {
+ const std::string& key = iter->first;
+ const std::string& value = iter->second;
if (key == "request_content_type") {
EXPECT_EQ("application/json", value);
« no previous file with comments | « components/auto_login_parser/auto_login_parser.cc ('k') | components/leveldb_proto/leveldb_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698