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

Side by Side Diff: chrome/browser/sync/test/integration/passwords_helper.cc

Issue 120983002: Update some uses of UTF conversions in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/sync/test/integration/passwords_helper.h" 5 #include "chrome/browser/sync/test/integration/passwords_helper.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 int GetVerifierPasswordCount() { 209 int GetVerifierPasswordCount() {
210 std::vector<PasswordForm> verifier_forms; 210 std::vector<PasswordForm> verifier_forms;
211 GetLogins(GetVerifierPasswordStore(), verifier_forms); 211 GetLogins(GetVerifierPasswordStore(), verifier_forms);
212 return verifier_forms.size(); 212 return verifier_forms.size();
213 } 213 }
214 214
215 PasswordForm CreateTestPasswordForm(int index) { 215 PasswordForm CreateTestPasswordForm(int index) {
216 PasswordForm form; 216 PasswordForm form;
217 form.signon_realm = kFakeSignonRealm; 217 form.signon_realm = kFakeSignonRealm;
218 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); 218 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index));
219 form.username_value = ASCIIToUTF16(base::StringPrintf("username%d", index)); 219 form.username_value =
220 form.password_value = ASCIIToUTF16(base::StringPrintf("password%d", index)); 220 base::ASCIIToUTF16(base::StringPrintf("username%d", index));
221 form.password_value =
222 base::ASCIIToUTF16(base::StringPrintf("password%d", index));
221 form.date_created = base::Time::Now(); 223 form.date_created = base::Time::Now();
222 return form; 224 return form;
223 } 225 }
224 226
225 } // namespace passwords_helper 227 } // namespace passwords_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698