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

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

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile and chrome/ usage Created 6 years, 5 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 #include <vector> 9 #include <vector>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 virtual scoped_ptr<browser_sync::DeviceInfo> GetLocalDeviceInfo() 101 virtual scoped_ptr<browser_sync::DeviceInfo> GetLocalDeviceInfo()
102 const OVERRIDE; 102 const OVERRIDE;
103 MOCK_CONST_METHOD0(GetLocalDeviceInfoMock, 103 MOCK_CONST_METHOD0(GetLocalDeviceInfoMock,
104 browser_sync::DeviceInfo*()); 104 browser_sync::DeviceInfo*());
105 MOCK_CONST_METHOD0(GetLocalSyncCacheGUID, std::string()); 105 MOCK_CONST_METHOD0(GetLocalSyncCacheGUID, std::string());
106 106
107 // DataTypeManagerObserver mocks. 107 // DataTypeManagerObserver mocks.
108 MOCK_METHOD0(OnConfigureBlocked, void()); 108 MOCK_METHOD0(OnConfigureBlocked, void());
109 MOCK_METHOD1(OnConfigureDone, 109 MOCK_METHOD1(OnConfigureDone,
110 void(const browser_sync::DataTypeManager::ConfigureResult&)); 110 void(const sync_driver::DataTypeManager::ConfigureResult&));
111 MOCK_METHOD0(OnConfigureRetry, void()); 111 MOCK_METHOD0(OnConfigureRetry, void());
112 MOCK_METHOD0(OnConfigureStart, void()); 112 MOCK_METHOD0(OnConfigureStart, void());
113 113
114 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); 114 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool());
115 MOCK_CONST_METHOD0(IsManaged, bool()); 115 MOCK_CONST_METHOD0(IsManaged, bool());
116 MOCK_METHOD0(IsOAuthRefreshTokenAvailable, bool()); 116 MOCK_METHOD0(IsOAuthRefreshTokenAvailable, bool());
117 117
118 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); 118 MOCK_CONST_METHOD0(IsPassphraseRequired, bool());
119 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); 119 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool());
120 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); 120 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool());
121 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); 121 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType());
122 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); 122 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time());
123 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); 123 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time());
124 124
125 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); 125 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase));
126 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, 126 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase,
127 PassphraseType type)); 127 PassphraseType type));
128 128
129 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); 129 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode));
130 }; 130 };
131 131
132 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 132 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698