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

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

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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
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/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/password_manager/password_form_data.h" 11 #include "chrome/browser/password_manager/password_form_data.h"
12 #include "chrome/browser/password_manager/password_store.h" 12 #include "chrome/browser/password_manager/password_store.h"
13 #include "chrome/browser/password_manager/password_store_consumer.h" 13 #include "chrome/browser/password_manager/password_store_consumer.h"
14 #include "chrome/browser/password_manager/password_store_factory.h" 14 #include "chrome/browser/password_manager/password_store_factory.h"
15 #include "chrome/browser/sync/profile_sync_service.h" 15 #include "chrome/browser/sync/profile_sync_service.h"
16 #include "chrome/browser/sync/profile_sync_service_factory.h" 16 #include "chrome/browser/sync/profile_sync_service_factory.h"
17 #include "chrome/browser/sync/profile_sync_service_harness.h" 17 #include "chrome/browser/sync/profile_sync_service_harness.h"
18 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" 18 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
19 #include "chrome/test/base/ui_test_utils.h" 19 #include "chrome/test/base/ui_test_utils.h"
20 #include "content/public/browser/browser_thread.h" 20 #include "content/public/browser/browser_thread.h"
21 21
22 using webkit::forms::PasswordForm; 22 using content::PasswordForm;
23 using sync_datatype_helper::test; 23 using sync_datatype_helper::test;
24 24
25 const std::string kFakeSignonRealm = "http://fake-signon-realm.google.com/"; 25 const std::string kFakeSignonRealm = "http://fake-signon-realm.google.com/";
26 const char* kIndexedFakeOrigin = "http://fake-signon-realm.google.com/%d"; 26 const char* kIndexedFakeOrigin = "http://fake-signon-realm.google.com/%d";
27 27
28 namespace { 28 namespace {
29 29
30 // We use a WaitableEvent to wait when logins are added, removed, or updated 30 // We use a WaitableEvent to wait when logins are added, removed, or updated
31 // instead of running the UI message loop because of a restriction that 31 // instead of running the UI message loop because of a restriction that
32 // prevents a DB thread from initiating a quit of the UI message loop. 32 // prevents a DB thread from initiating a quit of the UI message loop.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 PasswordForm form; 210 PasswordForm form;
211 form.signon_realm = kFakeSignonRealm; 211 form.signon_realm = kFakeSignonRealm;
212 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index)); 212 form.origin = GURL(base::StringPrintf(kIndexedFakeOrigin, index));
213 form.username_value = ASCIIToUTF16(base::StringPrintf("username%d", index)); 213 form.username_value = ASCIIToUTF16(base::StringPrintf("username%d", index));
214 form.password_value = ASCIIToUTF16(base::StringPrintf("password%d", index)); 214 form.password_value = ASCIIToUTF16(base::StringPrintf("password%d", index));
215 form.date_created = base::Time::Now(); 215 form.date_created = base::Time::Now();
216 return form; 216 return form;
217 } 217 }
218 218
219 } // namespace passwords_helper 219 } // namespace passwords_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698