Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: chrome/browser/sync/profile_sync_service_mock.h

Issue 10834351: [sync] Divorce DataTypeManager from NotificationService notifications by creating a new DataTypeMa… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore expectations in DTMImpl unittest + Treat observer_ as const Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 bool(browser_sync::SyncBackendHost::Status* result)); 82 bool(browser_sync::SyncBackendHost::Status* result));
83 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); 83 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&());
84 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); 84 MOCK_CONST_METHOD0(FirstSetupInProgress, bool());
85 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); 85 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16());
86 MOCK_CONST_METHOD0(HasUnrecoverableError, bool()); 86 MOCK_CONST_METHOD0(HasUnrecoverableError, bool());
87 MOCK_CONST_METHOD0(sync_initialized, bool()); 87 MOCK_CONST_METHOD0(sync_initialized, bool());
88 MOCK_CONST_METHOD0(waiting_for_auth, bool()); 88 MOCK_CONST_METHOD0(waiting_for_auth, bool());
89 MOCK_METHOD1(OnActionableError, void( 89 MOCK_METHOD1(OnActionableError, void(
90 const syncer::SyncProtocolError&)); 90 const syncer::SyncProtocolError&));
91 91
92 // DataTypeManagerObserver mocks.
93 MOCK_METHOD0(OnConfigureBlocked, void());
94 MOCK_METHOD1(OnConfigureDone,
95 void(const browser_sync::DataTypeManager::ConfigureResult&));
96 MOCK_METHOD0(OnConfigureRetry, void());
97 MOCK_METHOD0(OnConfigureStart, void());
98
92 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); 99 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool());
93 MOCK_METHOD0(IsSyncTokenAvailable, bool()); 100 MOCK_METHOD0(IsSyncTokenAvailable, bool());
94 101
95 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); 102 MOCK_CONST_METHOD0(IsPassphraseRequired, bool());
96 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); 103 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool());
97 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); 104 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool());
98 105
99 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); 106 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase));
100 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, 107 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase,
101 PassphraseType type)); 108 PassphraseType type));
102 }; 109 };
103 110
104 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 111 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698