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

Side by Side Diff: components/browser_sync/profile_sync_service_mock.h

Issue 2768633003: Dynamic updating recent menu for tabs from other devices. (Closed)
Patch Set: Fixes compilation and test on Mac. Created 3 years, 8 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 COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 MOCK_CONST_METHOD0(IsFirstSetupInProgress, bool()); 73 MOCK_CONST_METHOD0(IsFirstSetupInProgress, bool());
74 MOCK_CONST_METHOD0(GetLastSyncedTimeString, base::string16()); 74 MOCK_CONST_METHOD0(GetLastSyncedTimeString, base::string16());
75 MOCK_CONST_METHOD0(HasUnrecoverableError, bool()); 75 MOCK_CONST_METHOD0(HasUnrecoverableError, bool());
76 MOCK_CONST_METHOD0(IsSyncActive, bool()); 76 MOCK_CONST_METHOD0(IsSyncActive, bool());
77 MOCK_CONST_METHOD0(IsEngineInitialized, bool()); 77 MOCK_CONST_METHOD0(IsEngineInitialized, bool());
78 MOCK_CONST_METHOD0(IsSyncRequested, bool()); 78 MOCK_CONST_METHOD0(IsSyncRequested, bool());
79 MOCK_CONST_METHOD0(waiting_for_auth, bool()); 79 MOCK_CONST_METHOD0(waiting_for_auth, bool());
80 MOCK_METHOD1(OnActionableError, void(const syncer::SyncProtocolError&)); 80 MOCK_METHOD1(OnActionableError, void(const syncer::SyncProtocolError&));
81 MOCK_CONST_METHOD1(IsDataTypeControllerRunning, bool(syncer::ModelType)); 81 MOCK_CONST_METHOD1(IsDataTypeControllerRunning, bool(syncer::ModelType));
82 82
83 MOCK_METHOD0(GetOpenTabsUIDelegateMock, sync_sessions::OpenTabsUIDelegate*());
84 sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() override;
85
83 // DataTypeManagerObserver mocks. 86 // DataTypeManagerObserver mocks.
84 MOCK_METHOD1(OnConfigureDone, 87 MOCK_METHOD1(OnConfigureDone,
85 void(const syncer::DataTypeManager::ConfigureResult&)); 88 void(const syncer::DataTypeManager::ConfigureResult&));
86 MOCK_METHOD0(OnConfigureStart, void()); 89 MOCK_METHOD0(OnConfigureStart, void());
87 90
88 MOCK_CONST_METHOD0(CanSyncStart, bool()); 91 MOCK_CONST_METHOD0(CanSyncStart, bool());
89 MOCK_CONST_METHOD0(IsManaged, bool()); 92 MOCK_CONST_METHOD0(IsManaged, bool());
90 93
91 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); 94 MOCK_CONST_METHOD0(IsPassphraseRequired, bool());
92 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); 95 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool());
93 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); 96 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool());
94 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); 97 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType());
95 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); 98 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time());
96 99
97 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); 100 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase));
98 MOCK_METHOD2(SetEncryptionPassphrase, 101 MOCK_METHOD2(SetEncryptionPassphrase,
99 void(const std::string& passphrase, PassphraseType type)); 102 void(const std::string& passphrase, PassphraseType type));
100 103
101 MOCK_METHOD0(OnSetupInProgressHandleDestroyed, void()); 104 MOCK_METHOD0(OnSetupInProgressHandleDestroyed, void());
102 }; 105 };
103 106
104 } // namespace browser_sync 107 } // namespace browser_sync
105 108
106 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 109 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/recent_tabs_sub_menu_model_unittest.cc ('k') | components/browser_sync/profile_sync_service_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698