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 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 MOCK_METHOD1(AddObserver, void(Observer*)); | 68 MOCK_METHOD1(AddObserver, void(Observer*)); |
69 MOCK_METHOD1(RemoveObserver, void(Observer*)); | 69 MOCK_METHOD1(RemoveObserver, void(Observer*)); |
70 MOCK_METHOD0(GetJsController, base::WeakPtr<syncer::JsController>()); | 70 MOCK_METHOD0(GetJsController, base::WeakPtr<syncer::JsController>()); |
71 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool()); | 71 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool()); |
72 | 72 |
73 MOCK_CONST_METHOD0(EncryptEverythingEnabled, bool()); | 73 MOCK_CONST_METHOD0(EncryptEverythingEnabled, bool()); |
74 MOCK_METHOD0(EnableEncryptEverything, void()); | 74 MOCK_METHOD0(EnableEncryptEverything, void()); |
75 | 75 |
76 MOCK_METHOD1(ChangePreferredDataTypes, | 76 MOCK_METHOD1(ChangePreferredDataTypes, |
77 void(syncer::ModelTypeSet preferred_types)); | 77 void(syncer::ModelTypeSet preferred_types)); |
| 78 MOCK_CONST_METHOD0(GetActiveDataTypes, syncer::ModelTypeSet()); |
78 MOCK_CONST_METHOD0(GetPreferredDataTypes, syncer::ModelTypeSet()); | 79 MOCK_CONST_METHOD0(GetPreferredDataTypes, syncer::ModelTypeSet()); |
79 MOCK_CONST_METHOD0(GetRegisteredDataTypes, syncer::ModelTypeSet()); | 80 MOCK_CONST_METHOD0(GetRegisteredDataTypes, syncer::ModelTypeSet()); |
80 MOCK_CONST_METHOD0(GetLastSessionSnapshot, | 81 MOCK_CONST_METHOD0(GetLastSessionSnapshot, |
81 syncer::sessions::SyncSessionSnapshot()); | 82 syncer::sessions::SyncSessionSnapshot()); |
82 | 83 |
83 MOCK_METHOD1(QueryDetailedSyncStatus, | 84 MOCK_METHOD1(QueryDetailedSyncStatus, |
84 bool(browser_sync::SyncBackendHost::Status* result)); | 85 bool(browser_sync::SyncBackendHost::Status* result)); |
85 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); | 86 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); |
86 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); | 87 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); |
87 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); | 88 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); |
(...skipping 22 matching lines...) Expand all Loading... |
110 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); | 111 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); |
111 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); | 112 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); |
112 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); | 113 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); |
113 | 114 |
114 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 115 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
115 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, | 116 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, |
116 PassphraseType type)); | 117 PassphraseType type)); |
117 }; | 118 }; |
118 | 119 |
119 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 120 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
OLD | NEW |