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 COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_MOCK_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_MOCK_H_ |
6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_MOCK_H_ | 6 #define COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_MOCK_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 MOCK_METHOD1(SetSetupInProgress, void(bool)); | 79 MOCK_METHOD1(SetSetupInProgress, void(bool)); |
80 MOCK_CONST_METHOD1(IsDataTypeControllerRunning, bool(syncer::ModelType)); | 80 MOCK_CONST_METHOD1(IsDataTypeControllerRunning, bool(syncer::ModelType)); |
81 | 81 |
82 // DataTypeManagerObserver mocks. | 82 // DataTypeManagerObserver mocks. |
83 MOCK_METHOD1(OnConfigureDone, | 83 MOCK_METHOD1(OnConfigureDone, |
84 void(const sync_driver::DataTypeManager::ConfigureResult&)); | 84 void(const sync_driver::DataTypeManager::ConfigureResult&)); |
85 MOCK_METHOD0(OnConfigureStart, void()); | 85 MOCK_METHOD0(OnConfigureStart, void()); |
86 | 86 |
87 MOCK_CONST_METHOD0(CanSyncStart, bool()); | 87 MOCK_CONST_METHOD0(CanSyncStart, bool()); |
88 MOCK_CONST_METHOD0(IsManaged, bool()); | 88 MOCK_CONST_METHOD0(IsManaged, bool()); |
89 MOCK_METHOD0(IsOAuthRefreshTokenAvailable, bool()); | |
90 | 89 |
91 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); | 90 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); |
92 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); | 91 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); |
93 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); | 92 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); |
94 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); | 93 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); |
95 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); | 94 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); |
96 | 95 |
97 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 96 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
98 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, | 97 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, |
99 PassphraseType type)); | 98 PassphraseType type)); |
100 | 99 |
101 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); | 100 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); |
102 }; | 101 }; |
103 | 102 |
104 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_MOCK_H_ | 103 #endif // COMPONENTS_BROWSER_SYNC_BROWSER_PROFILE_SYNC_SERVICE_MOCK_H_ |
OLD | NEW |