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

Side by Side Diff: components/sync_driver/data_type_manager_mock.h

Issue 408003002: [Sync] Fix namespace for sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__ 5 #ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__
6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__ 6 #define COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__
7 7
8 #include "components/sync_driver/data_type_manager.h" 8 #include "components/sync_driver/data_type_manager.h"
9 #include "sync/api/sync_error.h" 9 #include "sync/api/sync_error.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace browser_sync { 12 namespace sync_driver {
13 13
14 class DataTypeManagerMock : public DataTypeManager { 14 class DataTypeManagerMock : public DataTypeManager {
15 public: 15 public:
16 DataTypeManagerMock(); 16 DataTypeManagerMock();
17 virtual ~DataTypeManagerMock(); 17 virtual ~DataTypeManagerMock();
18 18
19 MOCK_METHOD2(Configure, void(syncer::ModelTypeSet, syncer::ConfigureReason)); 19 MOCK_METHOD2(Configure, void(syncer::ModelTypeSet, syncer::ConfigureReason));
20 MOCK_METHOD2(PurgeForMigration, void(syncer::ModelTypeSet, 20 MOCK_METHOD2(PurgeForMigration, void(syncer::ModelTypeSet,
21 syncer::ConfigureReason)); 21 syncer::ConfigureReason));
22 MOCK_METHOD0(Stop, void()); 22 MOCK_METHOD0(Stop, void());
23 MOCK_METHOD0(controllers, const DataTypeController::TypeMap&()); 23 MOCK_METHOD0(controllers, const DataTypeController::TypeMap&());
24 MOCK_CONST_METHOD0(state, State()); 24 MOCK_CONST_METHOD0(state, State());
25 25
26 private: 26 private:
27 browser_sync::DataTypeManager::ConfigureResult result_; 27 DataTypeManager::ConfigureResult result_;
28 }; 28 };
29 29
30 } // namespace browser_sync 30 } // namespace sync_driver
31 31
32 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__ 32 #endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_MANAGER_MOCK_H__
OLDNEW
« no previous file with comments | « components/sync_driver/data_type_manager_impl_unittest.cc ('k') | components/sync_driver/data_type_manager_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698