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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool()); | 67 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool()); |
68 | 68 |
69 MOCK_CONST_METHOD0(EncryptEverythingEnabled, bool()); | 69 MOCK_CONST_METHOD0(EncryptEverythingEnabled, bool()); |
70 MOCK_METHOD0(EnableEncryptEverything, void()); | 70 MOCK_METHOD0(EnableEncryptEverything, void()); |
71 | 71 |
72 MOCK_METHOD1(ChangePreferredDataTypes, | 72 MOCK_METHOD1(ChangePreferredDataTypes, |
73 void(syncable::ModelTypeSet preferred_types)); | 73 void(syncable::ModelTypeSet preferred_types)); |
74 MOCK_CONST_METHOD0(GetPreferredDataTypes, syncable::ModelTypeSet()); | 74 MOCK_CONST_METHOD0(GetPreferredDataTypes, syncable::ModelTypeSet()); |
75 MOCK_CONST_METHOD0(GetRegisteredDataTypes, syncable::ModelTypeSet()); | 75 MOCK_CONST_METHOD0(GetRegisteredDataTypes, syncable::ModelTypeSet()); |
76 MOCK_CONST_METHOD0(GetLastSessionSnapshot, | 76 MOCK_CONST_METHOD0(GetLastSessionSnapshot, |
77 const browser_sync::sessions::SyncSessionSnapshot*()); | 77 browser_sync::sessions::SyncSessionSnapshot()); |
78 | 78 |
79 MOCK_METHOD0(QueryDetailedSyncStatus, | 79 MOCK_METHOD0(QueryDetailedSyncStatus, |
80 browser_sync::SyncBackendHost::Status()); | 80 browser_sync::SyncBackendHost::Status()); |
81 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); | 81 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); |
82 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); | 82 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); |
83 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); | 83 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); |
84 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool()); | 84 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool()); |
85 MOCK_CONST_METHOD0(sync_initialized, bool()); | 85 MOCK_CONST_METHOD0(sync_initialized, bool()); |
86 MOCK_CONST_METHOD0(waiting_for_auth, bool()); | 86 MOCK_CONST_METHOD0(waiting_for_auth, bool()); |
87 MOCK_METHOD1(OnActionableError, void( | 87 MOCK_METHOD1(OnActionableError, void( |
88 const browser_sync::SyncProtocolError&)); | 88 const browser_sync::SyncProtocolError&)); |
89 | 89 |
90 MOCK_METHOD0(AreCredentialsAvailable, bool()); | 90 MOCK_METHOD0(AreCredentialsAvailable, bool()); |
91 | 91 |
92 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); | 92 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); |
93 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); | 93 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); |
94 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); | 94 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); |
95 | 95 |
96 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 96 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
97 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, | 97 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, |
98 PassphraseType type)); | 98 PassphraseType type)); |
99 | 99 |
100 MOCK_METHOD0(ShowErrorUI, void()); | 100 MOCK_METHOD0(ShowErrorUI, void()); |
101 }; | 101 }; |
102 | 102 |
103 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 103 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
OLD | NEW |