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

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

Issue 21022018: Sessions API - previously Session Restore API. Supports restoring currently open foreign windows an… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: delete test. Created 7 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.h ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); 91 MOCK_CONST_METHOD0(FirstSetupInProgress, bool());
92 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); 92 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16());
93 MOCK_CONST_METHOD0(HasUnrecoverableError, bool()); 93 MOCK_CONST_METHOD0(HasUnrecoverableError, bool());
94 MOCK_CONST_METHOD0(sync_initialized, bool()); 94 MOCK_CONST_METHOD0(sync_initialized, bool());
95 MOCK_CONST_METHOD0(IsStartSuppressed, bool()); 95 MOCK_CONST_METHOD0(IsStartSuppressed, bool());
96 MOCK_CONST_METHOD0(waiting_for_auth, bool()); 96 MOCK_CONST_METHOD0(waiting_for_auth, bool());
97 MOCK_METHOD1(OnActionableError, void( 97 MOCK_METHOD1(OnActionableError, void(
98 const syncer::SyncProtocolError&)); 98 const syncer::SyncProtocolError&));
99 MOCK_METHOD1(SetSetupInProgress, void(bool)); 99 MOCK_METHOD1(SetSetupInProgress, void(bool));
100 100
101 MOCK_METHOD0(GetSessionModelAssociator,
102 browser_sync::SessionModelAssociator*());
101 MOCK_CONST_METHOD0(GetAllSignedinDevicesMock, 103 MOCK_CONST_METHOD0(GetAllSignedinDevicesMock,
102 std::vector<browser_sync::DeviceInfo*>* ()); 104 std::vector<browser_sync::DeviceInfo*>* ());
103 // This is to get around the fact that GMOCK does not handle Scoped*. 105 // This is to get around the fact that GMOCK does not handle Scoped*.
104 virtual ScopedVector<browser_sync::DeviceInfo> 106 virtual ScopedVector<browser_sync::DeviceInfo>
105 GetAllSignedinDevices() const OVERRIDE; 107 GetAllSignedinDevices() const OVERRIDE;
106 108
107 // DataTypeManagerObserver mocks. 109 // DataTypeManagerObserver mocks.
108 MOCK_METHOD0(OnConfigureBlocked, void()); 110 MOCK_METHOD0(OnConfigureBlocked, void());
109 MOCK_METHOD1(OnConfigureDone, 111 MOCK_METHOD1(OnConfigureDone,
110 void(const browser_sync::DataTypeManager::ConfigureResult&)); 112 void(const browser_sync::DataTypeManager::ConfigureResult&));
(...skipping 10 matching lines...) Expand all
121 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); 123 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType());
122 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); 124 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time());
123 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); 125 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time());
124 126
125 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); 127 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase));
126 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, 128 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase,
127 PassphraseType type)); 129 PassphraseType type));
128 }; 130 };
129 131
130 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 132 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.h ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698