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

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

Issue 312163004: [Sync] Add support for dynamically enabling/disabling types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment, fix purging behavior Created 6 years, 6 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const std::string& access_code)); 50 const std::string& access_code));
51 MOCK_METHOD0(OnUserCancelledDialog, void()); 51 MOCK_METHOD0(OnUserCancelledDialog, void());
52 MOCK_CONST_METHOD0(GetAuthenticatedUsername, base::string16()); 52 MOCK_CONST_METHOD0(GetAuthenticatedUsername, base::string16());
53 MOCK_METHOD2(OnUserChoseDatatypes, 53 MOCK_METHOD2(OnUserChoseDatatypes,
54 void(bool sync_everything, 54 void(bool sync_everything,
55 syncer::ModelTypeSet chosen_types)); 55 syncer::ModelTypeSet chosen_types));
56 56
57 MOCK_METHOD2(OnUnrecoverableError, 57 MOCK_METHOD2(OnUnrecoverableError,
58 void(const tracked_objects::Location& location, 58 void(const tracked_objects::Location& location,
59 const std::string& message)); 59 const std::string& message));
60 MOCK_METHOD3(DisableBrokenDatatype, void(syncer::ModelType, 60 MOCK_METHOD3(DisableDatatype, void(syncer::ModelType,
61 const tracked_objects::Location&, 61 const tracked_objects::Location&,
62 std::string message)); 62 std::string message));
63 MOCK_CONST_METHOD0(GetUserShare, syncer::UserShare*()); 63 MOCK_CONST_METHOD0(GetUserShare, syncer::UserShare*());
64 MOCK_METHOD1(DeactivateDataType, void(syncer::ModelType)); 64 MOCK_METHOD1(DeactivateDataType, void(syncer::ModelType));
65 MOCK_METHOD0(UnsuppressAndStart, void()); 65 MOCK_METHOD0(UnsuppressAndStart, void());
66 66
67 MOCK_METHOD1(AddObserver, void(ProfileSyncServiceBase::Observer*)); 67 MOCK_METHOD1(AddObserver, void(ProfileSyncServiceBase::Observer*));
68 MOCK_METHOD1(RemoveObserver, void(ProfileSyncServiceBase::Observer*)); 68 MOCK_METHOD1(RemoveObserver, void(ProfileSyncServiceBase::Observer*));
69 MOCK_METHOD0(GetJsController, base::WeakPtr<syncer::JsController>()); 69 MOCK_METHOD0(GetJsController, base::WeakPtr<syncer::JsController>());
70 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool()); 70 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool());
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); 125 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time());
126 126
127 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); 127 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase));
128 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, 128 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase,
129 PassphraseType type)); 129 PassphraseType type));
130 130
131 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); 131 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode));
132 }; 132 };
133 133
134 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 134 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698