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

Side by Side Diff: chrome/browser/sync/glue/frontend_data_type_controller_mock.h

Issue 10662035: [Sync] Put everything in sync/api into csync namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 8 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_GLUE_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__
6 #define CHROME_BROWSER_SYNC_GLUE_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/sync/glue/frontend_data_type_controller.h" 9 #include "chrome/browser/sync/glue/frontend_data_type_controller.h"
10 #include "sync/api/sync_error.h" 10 #include "sync/api/sync_error.h"
(...skipping 18 matching lines...) Expand all
29 MOCK_CONST_METHOD0(model_safe_group, csync::ModelSafeGroup()); 29 MOCK_CONST_METHOD0(model_safe_group, csync::ModelSafeGroup());
30 MOCK_CONST_METHOD0(state, State()); 30 MOCK_CONST_METHOD0(state, State());
31 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&, 31 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&,
32 const std::string&)); 32 const std::string&));
33 33
34 // FrontendDataTypeController mocks. 34 // FrontendDataTypeController mocks.
35 MOCK_METHOD0(StartModels, bool()); 35 MOCK_METHOD0(StartModels, bool());
36 MOCK_METHOD0(Associate, bool()); 36 MOCK_METHOD0(Associate, bool());
37 MOCK_METHOD0(CreateSyncComponents, void()); 37 MOCK_METHOD0(CreateSyncComponents, void());
38 MOCK_METHOD2(StartFailed, void(StartResult result, 38 MOCK_METHOD2(StartFailed, void(StartResult result,
39 const SyncError& error)); 39 const csync::SyncError& error));
40 MOCK_METHOD1(FinishStart, void(StartResult result)); 40 MOCK_METHOD1(FinishStart, void(StartResult result));
41 MOCK_METHOD0(CleanUpState, void()); 41 MOCK_METHOD0(CleanUpState, void());
42 MOCK_CONST_METHOD0(model_associator, AssociatorInterface*()); 42 MOCK_CONST_METHOD0(model_associator, AssociatorInterface*());
43 MOCK_METHOD1(set_model_associator, void(AssociatorInterface* associator)); 43 MOCK_METHOD1(set_model_associator, void(AssociatorInterface* associator));
44 MOCK_CONST_METHOD0(change_processor, ChangeProcessor*()); 44 MOCK_CONST_METHOD0(change_processor, ChangeProcessor*());
45 MOCK_METHOD1(set_change_processor, void(ChangeProcessor* processor)); 45 MOCK_METHOD1(set_change_processor, void(ChangeProcessor* processor));
46 MOCK_METHOD2(RecordUnrecoverableError, void(const tracked_objects::Location&, 46 MOCK_METHOD2(RecordUnrecoverableError, void(const tracked_objects::Location&,
47 const std::string&)); 47 const std::string&));
48 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time)); 48 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time));
49 MOCK_METHOD1(RecordStartFailure, void(StartResult result)); 49 MOCK_METHOD1(RecordStartFailure, void(StartResult result));
50 50
51 protected: 51 protected:
52 virtual ~FrontendDataTypeControllerMock(); 52 virtual ~FrontendDataTypeControllerMock();
53 }; 53 };
54 54
55 } // namespace browser_sync 55 } // namespace browser_sync
56 56
57 #endif // CHROME_BROWSER_SYNC_GLUE_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ 57 #endif // CHROME_BROWSER_SYNC_GLUE_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698