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

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

Issue 6056008: Move lots of GMock stuff out of line. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright junk Created 9 years, 11 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) 2010 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_FACTORY_MOCK_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__
7 #pragma once 7 #pragma once
8 8
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome/browser/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
11 #include "chrome/browser/sync/profile_sync_factory.h" 11 #include "chrome/browser/sync/profile_sync_factory.h"
12 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
13 13
14 namespace browser_sync { 14 namespace browser_sync {
15 class AssociatorInterface; 15 class AssociatorInterface;
16 class ChangeProcessor; 16 class ChangeProcessor;
17 } 17 }
18 18
19 class ProfileSyncFactoryMock : public ProfileSyncFactory { 19 class ProfileSyncFactoryMock : public ProfileSyncFactory {
20 public: 20 public:
21 ProfileSyncFactoryMock() {} 21 ProfileSyncFactoryMock();
22 ProfileSyncFactoryMock( 22 ProfileSyncFactoryMock(
23 browser_sync::AssociatorInterface* bookmark_model_associator, 23 browser_sync::AssociatorInterface* bookmark_model_associator,
24 browser_sync::ChangeProcessor* bookmark_change_processor); 24 browser_sync::ChangeProcessor* bookmark_change_processor);
25 virtual ~ProfileSyncFactoryMock();
25 26
26 MOCK_METHOD1(CreateProfileSyncService, 27 MOCK_METHOD1(CreateProfileSyncService,
27 ProfileSyncService*(const std::string&)); 28 ProfileSyncService*(const std::string&));
28 MOCK_METHOD2(CreateDataTypeManager, 29 MOCK_METHOD2(CreateDataTypeManager,
29 browser_sync::DataTypeManager*( 30 browser_sync::DataTypeManager*(
30 browser_sync::SyncBackendHost*, 31 browser_sync::SyncBackendHost*,
31 const browser_sync::DataTypeController::TypeMap&)); 32 const browser_sync::DataTypeController::TypeMap&));
32 MOCK_METHOD2(CreateAppSyncComponents, 33 MOCK_METHOD2(CreateAppSyncComponents,
33 SyncComponents(ProfileSyncService* profile_sync_service, 34 SyncComponents(ProfileSyncService* profile_sync_service,
34 browser_sync::UnrecoverableErrorHandler* error_handler)); 35 browser_sync::UnrecoverableErrorHandler* error_handler));
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 browser_sync::UnrecoverableErrorHandler* error_handler)); 72 browser_sync::UnrecoverableErrorHandler* error_handler));
72 73
73 private: 74 private:
74 SyncComponents MakeBookmarkSyncComponents(); 75 SyncComponents MakeBookmarkSyncComponents();
75 76
76 scoped_ptr<browser_sync::AssociatorInterface> bookmark_model_associator_; 77 scoped_ptr<browser_sync::AssociatorInterface> bookmark_model_associator_;
77 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_; 78 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_;
78 }; 79 };
79 80
80 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ 81 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698