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

Side by Side Diff: chrome/browser/sync/profile_sync_service_mock.h

Issue 9703038: Profiles: Really fix refcounted services. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Forgot to save a file. >_< Created 8 years, 9 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 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 ProfileSyncServiceMock(); 25 ProfileSyncServiceMock();
26 explicit ProfileSyncServiceMock(Profile* profile); 26 explicit ProfileSyncServiceMock(Profile* profile);
27 virtual ~ProfileSyncServiceMock(); 27 virtual ~ProfileSyncServiceMock();
28 28
29 // A utility used by sync tests to create a TestingProfile with a Google 29 // A utility used by sync tests to create a TestingProfile with a Google
30 // Services username stored in a (Testing)PrefService. 30 // Services username stored in a (Testing)PrefService.
31 static TestingProfile* MakeSignedInTestingProfile(); 31 static TestingProfile* MakeSignedInTestingProfile();
32 32
33 // Helper routine to be used in conjunction with 33 // Helper routine to be used in conjunction with
34 // ProfileKeyedServiceFactory::SetTestingFactory(). 34 // ProfileKeyedServiceFactory::SetTestingFactory().
35 static ProfileKeyedBase* BuildMockProfileSyncService(Profile* profile); 35 static ProfileKeyedService* BuildMockProfileSyncService(Profile* profile);
36 36
37 MOCK_METHOD0(DisableForUser, void()); 37 MOCK_METHOD0(DisableForUser, void());
38 MOCK_METHOD2(OnBackendInitialized, 38 MOCK_METHOD2(OnBackendInitialized,
39 void(const browser_sync::WeakHandle<browser_sync::JsBackend>&, 39 void(const browser_sync::WeakHandle<browser_sync::JsBackend>&,
40 bool)); 40 bool));
41 MOCK_METHOD0(OnSyncCycleCompleted, void()); 41 MOCK_METHOD0(OnSyncCycleCompleted, void());
42 MOCK_METHOD0(OnAuthError, void()); 42 MOCK_METHOD0(OnAuthError, void());
43 MOCK_METHOD4(OnUserSubmittedAuth, 43 MOCK_METHOD4(OnUserSubmittedAuth,
44 void(const std::string& username, 44 void(const std::string& username,
45 const std::string& password, 45 const std::string& password,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 MOCK_METHOD0(AreCredentialsAvailable, bool()); 84 MOCK_METHOD0(AreCredentialsAvailable, bool());
85 85
86 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); 86 MOCK_CONST_METHOD0(IsPassphraseRequired, bool());
87 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); 87 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool());
88 88
89 MOCK_METHOD0(ShowErrorUI, void()); 89 MOCK_METHOD0(ShowErrorUI, void());
90 }; 90 };
91 91
92 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 92 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_autofill_unittest.cc ('k') | chrome/browser/sync/profile_sync_service_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698