OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "sync/internal_api/public/syncable/model_type.h" | 10 #include "sync/internal_api/public/syncable/model_type.h" |
| 11 #include "sync/internal_api/public/util/unrecoverable_error_handler.h" |
11 #include "sync/syncable/syncable.h" | 12 #include "sync/syncable/syncable.h" |
12 #include "sync/util/unrecoverable_error_handler.h" | |
13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
14 | 14 |
15 namespace browser_sync { | 15 namespace browser_sync { |
16 | 16 |
17 class ChangeProcessorMock | 17 class ChangeProcessorMock |
18 : public ChangeProcessor, public DataTypeErrorHandler{ | 18 : public ChangeProcessor, public DataTypeErrorHandler{ |
19 public: | 19 public: |
20 ChangeProcessorMock(); | 20 ChangeProcessorMock(); |
21 virtual ~ChangeProcessorMock(); | 21 virtual ~ChangeProcessorMock(); |
22 MOCK_METHOD2(ApplyChangesFromSyncModel, | 22 MOCK_METHOD2(ApplyChangesFromSyncModel, |
(...skipping 11 matching lines...) Expand all Loading... |
34 MOCK_METHOD3(CreateAndUploadError, | 34 MOCK_METHOD3(CreateAndUploadError, |
35 SyncError(const tracked_objects::Location&, | 35 SyncError(const tracked_objects::Location&, |
36 const std::string&, | 36 const std::string&, |
37 syncable::ModelType)); | 37 syncable::ModelType)); |
38 | 38 |
39 }; | 39 }; |
40 | 40 |
41 } // namespace browser_sync | 41 } // namespace browser_sync |
42 | 42 |
43 #endif // CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__ | 43 #endif // CHROME_BROWSER_SYNC_GLUE_CHANGE_PROCESSOR_MOCK_H__ |
OLD | NEW |