OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_MOCK_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_MOCK_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "chrome/browser/sync/api/sync_change.h" |
| 10 #include "chrome/browser/sync/glue/shared_change_processor.h" |
| 11 #include "chrome/browser/sync/unrecoverable_error_handler.h" |
| 12 #include "testing/gmock/include/gmock/gmock.h" |
| 13 |
| 14 namespace browser_sync { |
| 15 |
| 16 class SharedChangeProcessorMock : public SharedChangeProcessor { |
| 17 public: |
| 18 SharedChangeProcessorMock(); |
| 19 |
| 20 MOCK_METHOD1(Connect, void(GenericChangeProcessor*)); |
| 21 MOCK_METHOD0(Disconnect, void()); |
| 22 MOCK_METHOD2(ProcessSyncChanges, |
| 23 SyncError(const tracked_objects::Location& from_here, |
| 24 const SyncChangeList& change_list)); |
| 25 MOCK_METHOD2(GetSyncDataForType, |
| 26 SyncError(syncable::ModelType type, |
| 27 SyncDataList* current_sync_data)); |
| 28 MOCK_METHOD2(SyncModelHasUserCreatedNodes, |
| 29 bool(syncable::ModelType type, |
| 30 bool* has_nodes)); |
| 31 MOCK_METHOD1(CryptoReadyIfNecessary, bool(syncable::ModelType type)); |
| 32 |
| 33 protected: |
| 34 virtual ~SharedChangeProcessorMock(); |
| 35 MOCK_METHOD2(OnUnrecoverableError, void(const tracked_objects::Location&, |
| 36 const std::string&)); |
| 37 |
| 38 private: |
| 39 DISALLOW_COPY_AND_ASSIGN(SharedChangeProcessorMock); |
| 40 }; |
| 41 |
| 42 } // namespace browser_sync |
| 43 |
| 44 #endif // CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_MOCK_H_ |
OLD | NEW |