OLD | NEW |
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_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/engine/syncapi.h" | 9 #include "chrome/browser/sync/engine/syncapi.h" |
10 #include "chrome/browser/sync/glue/change_processor.h" | 10 #include "chrome/browser/sync/glue/change_processor.h" |
11 #include "chrome/browser/sync/syncable/syncable.h" | 11 #include "chrome/browser/sync/syncable/syncable.h" |
12 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
13 | 13 |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 namespace browser_sync { | 16 namespace browser_sync { |
17 | 17 |
18 class ChangeProcessorMock : public ChangeProcessor { | 18 class ChangeProcessorMock : public ChangeProcessor { |
19 public: | 19 public: |
20 ChangeProcessorMock() : ChangeProcessor(NULL) {} | 20 ChangeProcessorMock(); |
| 21 virtual ~ChangeProcessorMock(); |
21 MOCK_METHOD3(ApplyChangesFromSyncModel, | 22 MOCK_METHOD3(ApplyChangesFromSyncModel, |
22 void(const sync_api::BaseTransaction* trans, | 23 void(const sync_api::BaseTransaction* trans, |
23 const sync_api::SyncManager::ChangeRecord* changes, | 24 const sync_api::SyncManager::ChangeRecord* changes, |
24 int change_count)); | 25 int change_count)); |
25 MOCK_METHOD1(StartImpl, void(Profile* profile)); | 26 MOCK_METHOD1(StartImpl, void(Profile* profile)); |
26 MOCK_METHOD0(StopImpl, void()); | 27 MOCK_METHOD0(StopImpl, void()); |
27 MOCK_CONST_METHOD0(IsRunning, bool()); | 28 MOCK_CONST_METHOD0(IsRunning, bool()); |
28 }; | 29 }; |
29 | 30 |
30 } // namespace browser_sync | 31 } // namespace browser_sync |
31 | 32 |
32 #endif // CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__ | 33 #endif // CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__ |
OLD | NEW |