| 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 COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "components/browser_sync/profile_sync_service.h" | 13 #include "components/browser_sync/profile_sync_service.h" |
| 14 #include "components/sync/base/model_type.h" | 14 #include "components/sync/base/model_type.h" |
| 15 #include "components/sync/device_info/device_info.h" | 15 #include "components/sync/device_info/device_info.h" |
| 16 #include "components/sync/driver/change_processor.h" | |
| 17 #include "components/sync/driver/data_type_controller.h" | 16 #include "components/sync/driver/data_type_controller.h" |
| 17 #include "components/sync/model/change_processor.h" |
| 18 #include "components/sync/protocol/sync_protocol_error.h" | 18 #include "components/sync/protocol/sync_protocol_error.h" |
| 19 #include "google_apis/gaia/google_service_auth_error.h" | 19 #include "google_apis/gaia/google_service_auth_error.h" |
| 20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 21 | 21 |
| 22 namespace browser_sync { | 22 namespace browser_sync { |
| 23 | 23 |
| 24 class ProfileSyncServiceMock : public ProfileSyncService { | 24 class ProfileSyncServiceMock : public ProfileSyncService { |
| 25 public: | 25 public: |
| 26 explicit ProfileSyncServiceMock(InitParams init_params); | 26 explicit ProfileSyncServiceMock(InitParams init_params); |
| 27 // The second constructor defers to the first one. Use it when you need to | 27 // The second constructor defers to the first one. Use it when you need to |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 96 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
| 97 MOCK_METHOD2(SetEncryptionPassphrase, | 97 MOCK_METHOD2(SetEncryptionPassphrase, |
| 98 void(const std::string& passphrase, PassphraseType type)); | 98 void(const std::string& passphrase, PassphraseType type)); |
| 99 | 99 |
| 100 MOCK_METHOD0(OnSetupInProgressHandleDestroyed, void()); | 100 MOCK_METHOD0(OnSetupInProgressHandleDestroyed, void()); |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace browser_sync | 103 } // namespace browser_sync |
| 104 | 104 |
| 105 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 105 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| OLD | NEW |