OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |