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

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

Issue 12077030: Allow signin to continue even if sync is disabled by policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows sync integration test failure Created 7 years, 10 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 MOCK_METHOD1(SetSetupInProgress, void(bool)); 92 MOCK_METHOD1(SetSetupInProgress, void(bool));
93 93
94 // DataTypeManagerObserver mocks. 94 // DataTypeManagerObserver mocks.
95 MOCK_METHOD0(OnConfigureBlocked, void()); 95 MOCK_METHOD0(OnConfigureBlocked, void());
96 MOCK_METHOD1(OnConfigureDone, 96 MOCK_METHOD1(OnConfigureDone,
97 void(const browser_sync::DataTypeManager::ConfigureResult&)); 97 void(const browser_sync::DataTypeManager::ConfigureResult&));
98 MOCK_METHOD0(OnConfigureRetry, void()); 98 MOCK_METHOD0(OnConfigureRetry, void());
99 MOCK_METHOD0(OnConfigureStart, void()); 99 MOCK_METHOD0(OnConfigureStart, void());
100 100
101 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); 101 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool());
102 MOCK_CONST_METHOD0(IsManaged, bool());
102 MOCK_METHOD0(IsSyncTokenAvailable, bool()); 103 MOCK_METHOD0(IsSyncTokenAvailable, bool());
103 104
104 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); 105 MOCK_CONST_METHOD0(IsPassphraseRequired, bool());
105 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); 106 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool());
106 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); 107 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool());
107 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); 108 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType());
108 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); 109 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time());
109 110
110 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); 111 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase));
111 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, 112 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase,
112 PassphraseType type)); 113 PassphraseType type));
113 }; 114 };
114 115
115 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 116 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_factory.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698