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

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

Issue 6811003: [Sync] Make generic non-frontend thread datatype controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copy paste :( Created 9 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 | 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_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 "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 12 matching lines...) Expand all
23 MOCK_CONST_METHOD0(type, syncable::ModelType()); 23 MOCK_CONST_METHOD0(type, syncable::ModelType());
24 MOCK_CONST_METHOD0(name, std::string()); 24 MOCK_CONST_METHOD0(name, std::string());
25 MOCK_CONST_METHOD0(model_safe_group, browser_sync::ModelSafeGroup()); 25 MOCK_CONST_METHOD0(model_safe_group, browser_sync::ModelSafeGroup());
26 MOCK_CONST_METHOD0(state, State()); 26 MOCK_CONST_METHOD0(state, State());
27 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&, 27 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&,
28 const std::string&)); 28 const std::string&));
29 29
30 // FrontendDataTypeController mocks. 30 // FrontendDataTypeController mocks.
31 MOCK_METHOD0(StartModels, bool()); 31 MOCK_METHOD0(StartModels, bool());
32 MOCK_METHOD0(Associate, bool()); 32 MOCK_METHOD0(Associate, bool());
33 MOCK_METHOD0(CleanupState, void()); 33 MOCK_METHOD0(CreateSyncComponents, void());
34 MOCK_METHOD2(StartFailed, void(StartResult result,
35 const tracked_objects::Location& from_here));
34 MOCK_METHOD2(FinishStart, void(StartResult result, 36 MOCK_METHOD2(FinishStart, void(StartResult result,
35 const tracked_objects::Location& from_here)); 37 const tracked_objects::Location& from_here));
36 MOCK_METHOD2(StartFailed, void(StartResult result, 38 MOCK_METHOD0(CleanUpState, void());
37 const tracked_objects::Location& from_here));
38 MOCK_METHOD0(CreateSyncComponents, void());
39 MOCK_METHOD2(RecordUnrecoverableError, void(const tracked_objects::Location&, 39 MOCK_METHOD2(RecordUnrecoverableError, void(const tracked_objects::Location&,
40 const std::string&)); 40 const std::string&));
41 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time)); 41 MOCK_METHOD1(RecordAssociationTime, void(base::TimeDelta time));
42 MOCK_METHOD1(RecordStartFailure, void(StartResult result)); 42 MOCK_METHOD1(RecordStartFailure, void(StartResult result));
43 }; 43 };
44 44
45 } // namespace browser_sync 45 } // namespace browser_sync
46 46
47 #endif // CHROME_BROWSER_SYNC_GLUE_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__ 47 #endif // CHROME_BROWSER_SYNC_GLUE_FRONTEND_DATA_TYPE_CONTROLLER_MOCK_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698