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/live_sync/passwords_helper.cc

Issue 7828055: Move sync test code out of chrome/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/test/live_sync/passwords_helper.h" 5 #include "chrome/browser/sync/test/live_sync/passwords_helper.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/password_manager/password_form_data.h" 10 #include "chrome/browser/password_manager/password_form_data.h"
11 #include "chrome/browser/password_manager/password_store_consumer.h" 11 #include "chrome/browser/password_manager/password_store_consumer.h"
12 #include "chrome/browser/password_manager/password_store.h" 12 #include "chrome/browser/password_manager/password_store.h"
13 #include "chrome/browser/sync/profile_sync_service_harness.h" 13 #include "chrome/browser/sync/profile_sync_service_harness.h"
14 #include "chrome/browser/sync/test/live_sync/sync_datatype_helper.h"
14 #include "chrome/test/base/ui_test_utils.h" 15 #include "chrome/test/base/ui_test_utils.h"
15 #include "chrome/test/live_sync/sync_datatype_helper.h"
16 #include "content/browser/browser_thread.h" 16 #include "content/browser/browser_thread.h"
17 17
18 using webkit_glue::PasswordForm; 18 using webkit_glue::PasswordForm;
19 using sync_datatype_helper::test; 19 using sync_datatype_helper::test;
20 20
21 const std::string kFakeSignonRealm = "http://fake-signon-realm.google.com/"; 21 const std::string kFakeSignonRealm = "http://fake-signon-realm.google.com/";
22 const char* kIndexedFakeOrigin = "http://fake-signon-realm.google.com/%d"; 22 const char* kIndexedFakeOrigin = "http://fake-signon-realm.google.com/%d";
23 23
24 namespace { 24 namespace {
25 25
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 PasswordForm CreateTestPasswordForm(int index) { 196 PasswordForm CreateTestPasswordForm(int index) {
197 PasswordForm form; 197 PasswordForm form;
198 form.signon_realm = kFakeSignonRealm; 198 form.signon_realm = kFakeSignonRealm;
199 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); 199 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index));
200 form.username_value = ASCIIToUTF16(base::StringPrintf("username%d", index)); 200 form.username_value = ASCIIToUTF16(base::StringPrintf("username%d", index));
201 form.password_value = ASCIIToUTF16(base::StringPrintf("password%d", index)); 201 form.password_value = ASCIIToUTF16(base::StringPrintf("password%d", index));
202 return form; 202 return form;
203 } 203 }
204 204
205 } // namespace passwords_helper 205 } // namespace passwords_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698