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

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

Issue 8065016: [Sync] Refactor non-frontend DTC to handle new API properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase++++ Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 20 matching lines...) Expand all
31 MOCK_METHOD4(OnUserSubmittedAuth, 31 MOCK_METHOD4(OnUserSubmittedAuth,
32 void(const std::string& username, 32 void(const std::string& username,
33 const std::string& password, 33 const std::string& password,
34 const std::string& captcha, 34 const std::string& captcha,
35 const std::string& access_code)); 35 const std::string& access_code));
36 MOCK_METHOD0(OnUserCancelledDialog, void()); 36 MOCK_METHOD0(OnUserCancelledDialog, void());
37 MOCK_CONST_METHOD0(GetAuthenticatedUsername, string16()); 37 MOCK_CONST_METHOD0(GetAuthenticatedUsername, string16());
38 MOCK_METHOD2(OnUnrecoverableError, 38 MOCK_METHOD2(OnUnrecoverableError,
39 void(const tracked_objects::Location& location, 39 void(const tracked_objects::Location& location,
40 const std::string& message)); 40 const std::string& message));
41 MOCK_CONST_METHOD0(GetUserShare, sync_api::UserShare*());
41 MOCK_METHOD3(ActivateDataType, 42 MOCK_METHOD3(ActivateDataType,
42 void(syncable::ModelType, browser_sync::ModelSafeGroup, 43 void(syncable::ModelType, browser_sync::ModelSafeGroup,
43 browser_sync::ChangeProcessor*)); 44 browser_sync::ChangeProcessor*));
44 MOCK_METHOD1(DeactivateDataType, void(syncable::ModelType)); 45 MOCK_METHOD1(DeactivateDataType, void(syncable::ModelType));
45 46
46 MOCK_METHOD0(InitializeBackend, void()); 47 MOCK_METHOD0(InitializeBackend, void());
47 MOCK_METHOD1(AddObserver, void(Observer*)); 48 MOCK_METHOD1(AddObserver, void(Observer*));
48 MOCK_METHOD1(RemoveObserver, void(Observer*)); 49 MOCK_METHOD1(RemoveObserver, void(Observer*));
49 MOCK_METHOD0(GetJsController, base::WeakPtr<browser_sync::JsController>()); 50 MOCK_METHOD0(GetJsController, base::WeakPtr<browser_sync::JsController>());
50 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool()); 51 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool());
(...skipping 12 matching lines...) Expand all
63 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); 64 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16());
64 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool()); 65 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool());
65 MOCK_METHOD1(OnActionableError, void( 66 MOCK_METHOD1(OnActionableError, void(
66 const browser_sync::SyncProtocolError&)); 67 const browser_sync::SyncProtocolError&));
67 68
68 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); 69 MOCK_CONST_METHOD0(IsPassphraseRequired, bool());
69 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); 70 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool());
70 }; 71 };
71 72
72 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ 73 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698