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

Side by Side Diff: chrome/browser/sync/test/live_sync/passwords_helper.h

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 #ifndef CHROME_TEST_LIVE_SYNC_PASSWORDS_HELPER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_PASSWORDS_HELPER_H_
6 #define CHROME_TEST_LIVE_SYNC_PASSWORDS_HELPER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_PASSWORDS_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/test/live_sync/live_sync_test.h" 13 #include "chrome/browser/sync/test/live_sync/live_sync_test.h"
14 #include "webkit/glue/password_form.h" 14 #include "webkit/glue/password_form.h"
15 15
16 class PasswordStore; 16 class PasswordStore;
17 17
18 namespace passwords_helper { 18 namespace passwords_helper {
19 19
20 // Adds the login held in |form| to the password store |store|. Even though 20 // Adds the login held in |form| to the password store |store|. Even though
21 // logins are normally added asynchronously, this method will block until the 21 // logins are normally added asynchronously, this method will block until the
22 // login is added. 22 // login is added.
23 void AddLogin(PasswordStore* store, const webkit_glue::PasswordForm& form); 23 void AddLogin(PasswordStore* store, const webkit_glue::PasswordForm& form);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // Returns the number of forms in the password store of the verifier profile. 72 // Returns the number of forms in the password store of the verifier profile.
73 int GetVerifierPasswordCount(); 73 int GetVerifierPasswordCount();
74 74
75 // Creates a test password form with a well known fake signon realm used only 75 // Creates a test password form with a well known fake signon realm used only
76 // by LivePasswordsSyncTest based on |index|. 76 // by LivePasswordsSyncTest based on |index|.
77 webkit_glue::PasswordForm CreateTestPasswordForm(int index); 77 webkit_glue::PasswordForm CreateTestPasswordForm(int index);
78 78
79 } // namespace passwords_helper 79 } // namespace passwords_helper
80 80
81 #endif // CHROME_TEST_LIVE_SYNC_PASSWORDS_HELPER_H_ 81 #endif // CHROME_BROWSER_SYNC_TEST_LIVE_SYNC_PASSWORDS_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698