| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_SERVICE_MOCK_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
| 12 #include "chrome/browser/sync/glue/change_processor.h" | 12 #include "chrome/browser/sync/glue/change_processor.h" |
| 13 #include "chrome/browser/sync/glue/data_type_controller.h" | 13 #include "chrome/browser/sync/glue/data_type_controller.h" |
| 14 #include "chrome/browser/sync/profile_sync_service.h" | 14 #include "chrome/browser/sync/profile_sync_service.h" |
| 15 #include "chrome/browser/sync/syncable/model_type.h" | 15 #include "chrome/browser/sync/syncable/model_type.h" |
| 16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
| 17 | 17 |
| 18 class ProfileSyncServiceMock : public ProfileSyncService { | 18 class ProfileSyncServiceMock : public ProfileSyncService { |
| 19 public: | 19 public: |
| 20 ProfileSyncServiceMock() {} | 20 ProfileSyncServiceMock() {} |
| 21 virtual ~ProfileSyncServiceMock() {} | 21 virtual ~ProfileSyncServiceMock() {} |
| (...skipping 30 matching lines...) Expand all Loading... |
| 52 MOCK_CONST_METHOD1(GetRegisteredDataTypes, | 52 MOCK_CONST_METHOD1(GetRegisteredDataTypes, |
| 53 void(syncable::ModelTypeSet* registered_types)); | 53 void(syncable::ModelTypeSet* registered_types)); |
| 54 | 54 |
| 55 MOCK_METHOD0(QueryDetailedSyncStatus, | 55 MOCK_METHOD0(QueryDetailedSyncStatus, |
| 56 browser_sync::SyncBackendHost::Status()); | 56 browser_sync::SyncBackendHost::Status()); |
| 57 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); | 57 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); |
| 58 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool()); | 58 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool()); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 61 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| OLD | NEW |