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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 MOCK_CONST_METHOD0(GetAllSignedInDevicesMock, | 98 MOCK_CONST_METHOD0(GetAllSignedInDevicesMock, |
99 std::vector<browser_sync::DeviceInfo*>* ()); | 99 std::vector<browser_sync::DeviceInfo*>* ()); |
100 // This is to get around the fact that GMOCK does not handle Scoped*. | 100 // This is to get around the fact that GMOCK does not handle Scoped*. |
101 virtual ScopedVector<browser_sync::DeviceInfo> | 101 virtual ScopedVector<browser_sync::DeviceInfo> |
102 GetAllSignedInDevices() const OVERRIDE; | 102 GetAllSignedInDevices() const OVERRIDE; |
103 | 103 |
104 // DataTypeManagerObserver mocks. | 104 // DataTypeManagerObserver mocks. |
105 MOCK_METHOD0(OnConfigureBlocked, void()); | 105 MOCK_METHOD0(OnConfigureBlocked, void()); |
106 MOCK_METHOD1(OnConfigureDone, | 106 MOCK_METHOD1(OnConfigureDone, |
107 void(const browser_sync::DataTypeManager::ConfigureResult&)); | 107 void(const sync_driver::DataTypeManager::ConfigureResult&)); |
108 MOCK_METHOD0(OnConfigureRetry, void()); | 108 MOCK_METHOD0(OnConfigureRetry, void()); |
109 MOCK_METHOD0(OnConfigureStart, void()); | 109 MOCK_METHOD0(OnConfigureStart, void()); |
110 | 110 |
111 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); | 111 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); |
112 MOCK_CONST_METHOD0(IsManaged, bool()); | 112 MOCK_CONST_METHOD0(IsManaged, bool()); |
113 MOCK_METHOD0(IsOAuthRefreshTokenAvailable, bool()); | 113 MOCK_METHOD0(IsOAuthRefreshTokenAvailable, bool()); |
114 | 114 |
115 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); | 115 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); |
116 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); | 116 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); |
117 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); | 117 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); |
118 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); | 118 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); |
119 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); | 119 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); |
120 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); | 120 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); |
121 | 121 |
122 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 122 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
123 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, | 123 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, |
124 PassphraseType type)); | 124 PassphraseType type)); |
125 | 125 |
126 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); | 126 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); |
127 }; | 127 }; |
128 | 128 |
129 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 129 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
OLD | NEW |