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

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

Issue 388003002: Sync: Display non-severe errors on about:sync in gray color rather than red. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed failing unit test, added extra test case, addressed CR feedback. 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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const std::string& access_code)); 50 const std::string& access_code));
51 MOCK_METHOD0(OnUserCancelledDialog, void()); 51 MOCK_METHOD0(OnUserCancelledDialog, void());
52 MOCK_CONST_METHOD0(GetAuthenticatedUsername, base::string16()); 52 MOCK_CONST_METHOD0(GetAuthenticatedUsername, base::string16());
53 MOCK_METHOD2(OnUserChoseDatatypes, 53 MOCK_METHOD2(OnUserChoseDatatypes,
54 void(bool sync_everything, 54 void(bool sync_everything,
55 syncer::ModelTypeSet chosen_types)); 55 syncer::ModelTypeSet chosen_types));
56 56
57 MOCK_METHOD2(OnUnrecoverableError, 57 MOCK_METHOD2(OnUnrecoverableError,
58 void(const tracked_objects::Location& location, 58 void(const tracked_objects::Location& location,
59 const std::string& message)); 59 const std::string& message));
60 MOCK_METHOD3(DisableDatatype, void(syncer::ModelType, 60 MOCK_METHOD1(DisableDatatype, void(const syncer::SyncError&));
61 const tracked_objects::Location&,
62 std::string message));
63 MOCK_CONST_METHOD0(GetUserShare, syncer::UserShare*()); 61 MOCK_CONST_METHOD0(GetUserShare, syncer::UserShare*());
64 MOCK_METHOD1(DeactivateDataType, void(syncer::ModelType)); 62 MOCK_METHOD1(DeactivateDataType, void(syncer::ModelType));
65 MOCK_METHOD0(UnsuppressAndStart, void()); 63 MOCK_METHOD0(UnsuppressAndStart, void());
66 64
67 MOCK_METHOD1(AddObserver, void(ProfileSyncServiceBase::Observer*)); 65 MOCK_METHOD1(AddObserver, void(ProfileSyncServiceBase::Observer*));
68 MOCK_METHOD1(RemoveObserver, void(ProfileSyncServiceBase::Observer*)); 66 MOCK_METHOD1(RemoveObserver, void(ProfileSyncServiceBase::Observer*));
69 MOCK_METHOD0(GetJsController, base::WeakPtr<syncer::JsController>()); 67 MOCK_METHOD0(GetJsController, base::WeakPtr<syncer::JsController>());
70 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool()); 68 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool());
71 69
72 MOCK_CONST_METHOD0(EncryptEverythingEnabled, bool()); 70 MOCK_CONST_METHOD0(EncryptEverythingEnabled, bool());
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); 123 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time());
126 124
127 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); 125 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase));
128 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, 126 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase,
129 PassphraseType type)); 127 PassphraseType type));
130 128
131 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); 129 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode));
132 }; 130 };
133 131
134 #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.cc ('k') | chrome/browser/themes/theme_syncable_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698