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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 const std::string& access_code)); | 47 const std::string& access_code)); |
48 MOCK_METHOD0(OnUserCancelledDialog, void()); | 48 MOCK_METHOD0(OnUserCancelledDialog, void()); |
49 MOCK_CONST_METHOD0(GetAuthenticatedUsername, string16()); | 49 MOCK_CONST_METHOD0(GetAuthenticatedUsername, string16()); |
50 MOCK_METHOD2(OnUserChoseDatatypes, | 50 MOCK_METHOD2(OnUserChoseDatatypes, |
51 void(bool sync_everything, | 51 void(bool sync_everything, |
52 syncable::ModelTypeSet chosen_types)); | 52 syncable::ModelTypeSet chosen_types)); |
53 | 53 |
54 MOCK_METHOD2(OnUnrecoverableError, | 54 MOCK_METHOD2(OnUnrecoverableError, |
55 void(const tracked_objects::Location& location, | 55 void(const tracked_objects::Location& location, |
56 const std::string& message)); | 56 const std::string& message)); |
57 MOCK_METHOD3(OnDisableDatatype, void(syncable::ModelType, | 57 MOCK_METHOD3(DisableBrokenDatatype, void(syncable::ModelType, |
58 const tracked_objects::Location&, | 58 const tracked_objects::Location&, |
59 std::string message)); | 59 std::string message)); |
60 MOCK_CONST_METHOD0(GetUserShare, sync_api::UserShare*()); | 60 MOCK_CONST_METHOD0(GetUserShare, sync_api::UserShare*()); |
61 MOCK_METHOD3(ActivateDataType, | 61 MOCK_METHOD3(ActivateDataType, |
62 void(syncable::ModelType, browser_sync::ModelSafeGroup, | 62 void(syncable::ModelType, browser_sync::ModelSafeGroup, |
63 browser_sync::ChangeProcessor*)); | 63 browser_sync::ChangeProcessor*)); |
64 MOCK_METHOD1(DeactivateDataType, void(syncable::ModelType)); | 64 MOCK_METHOD1(DeactivateDataType, void(syncable::ModelType)); |
65 | 65 |
66 MOCK_METHOD0(InitializeBackend, void()); | 66 MOCK_METHOD0(InitializeBackend, void()); |
67 MOCK_METHOD1(AddObserver, void(Observer*)); | 67 MOCK_METHOD1(AddObserver, void(Observer*)); |
(...skipping 28 matching lines...) Expand all Loading... |
96 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); | 96 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); |
97 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); | 97 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); |
98 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); | 98 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); |
99 | 99 |
100 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 100 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
101 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, | 101 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, |
102 PassphraseType type)); | 102 PassphraseType type)); |
103 }; | 103 }; |
104 | 104 |
105 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 105 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
OLD | NEW |