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

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

Issue 15421011: Use OAuth2 token for sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove token prefetch. Move UMA counters. Fix some tests. Etc. Created 7 years, 6 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
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 // DataTypeManagerObserver mocks. 96 // DataTypeManagerObserver mocks.
97 MOCK_METHOD0(OnConfigureBlocked, void()); 97 MOCK_METHOD0(OnConfigureBlocked, void());
98 MOCK_METHOD1(OnConfigureDone, 98 MOCK_METHOD1(OnConfigureDone,
99 void(const browser_sync::DataTypeManager::ConfigureResult&)); 99 void(const browser_sync::DataTypeManager::ConfigureResult&));
100 MOCK_METHOD0(OnConfigureRetry, void()); 100 MOCK_METHOD0(OnConfigureRetry, void());
101 MOCK_METHOD0(OnConfigureStart, void()); 101 MOCK_METHOD0(OnConfigureStart, void());
102 102
103 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); 103 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool());
104 MOCK_CONST_METHOD0(IsManaged, bool()); 104 MOCK_CONST_METHOD0(IsManaged, bool());
105 MOCK_METHOD0(IsSyncTokenAvailable, bool()); 105 MOCK_METHOD0(IsOAuthRefreshTokenAvailable, bool());
106 106
107 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); 107 MOCK_CONST_METHOD0(IsPassphraseRequired, bool());
108 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); 108 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool());
109 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); 109 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool());
110 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); 110 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType());
111 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); 111 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time());
112 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); 112 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time());
113 113
114 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); 114 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase));
115 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, 115 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase,
116 PassphraseType type)); 116 PassphraseType type));
117 }; 117 };
118 118
119 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 119 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698