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

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

Issue 7918001: [Sync] Move ChangeRecord into its own file (change_record.{h,cc}) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 3 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_CHANGE_PROCESSOR_MOCK_H__ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__
6 #define CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__ 6 #define CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/sync/glue/change_processor.h" 9 #include "chrome/browser/sync/glue/change_processor.h"
10 #include "chrome/browser/sync/internal_api/sync_manager.h"
11 #include "chrome/browser/sync/syncable/syncable.h" 10 #include "chrome/browser/sync/syncable/syncable.h"
12 #include "chrome/browser/sync/unrecoverable_error_handler.h" 11 #include "chrome/browser/sync/unrecoverable_error_handler.h"
13 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
14 13
15 namespace browser_sync { 14 namespace browser_sync {
16 15
17 class ChangeProcessorMock 16 class ChangeProcessorMock
18 : public ChangeProcessor, public UnrecoverableErrorHandler { 17 : public ChangeProcessor, public UnrecoverableErrorHandler {
19 public: 18 public:
20 ChangeProcessorMock(); 19 ChangeProcessorMock();
21 virtual ~ChangeProcessorMock(); 20 virtual ~ChangeProcessorMock();
22 MOCK_METHOD3(ApplyChangesFromSyncModel, 21 MOCK_METHOD2(ApplyChangesFromSyncModel,
23 void(const sync_api::BaseTransaction* trans, 22 void(const sync_api::BaseTransaction*,
24 const sync_api::SyncManager::ChangeRecord* changes, 23 const sync_api::ImmutableChangeRecordList&));
25 int change_count)); 24 MOCK_METHOD0(CommitChangesFromSyncModel, void());
26 MOCK_METHOD1(StartImpl, void(Profile* profile)); 25 MOCK_METHOD1(StartImpl, void(Profile*));
27 MOCK_METHOD0(StopImpl, void()); 26 MOCK_METHOD0(StopImpl, void());
28 MOCK_CONST_METHOD0(IsRunning, bool()); 27 MOCK_CONST_METHOD0(IsRunning, bool());
29 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&, 28 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&,
30 const std::string&)); 29 const std::string&));
31 }; 30 };
32 31
33 } // namespace browser_sync 32 } // namespace browser_sync
34 33
35 #endif // CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__ 34 #endif // CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/change_processor.h ('k') | chrome/browser/sync/glue/generic_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698