| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ | 6 #define COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "components/sync_driver/device_info.h" | 10 #include "components/sync_driver/device_info.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 const std::string& client_name, | 23 const std::string& client_name, |
| 24 const std::string& chrome_version, | 24 const std::string& chrome_version, |
| 25 const std::string& sync_user_agent, | 25 const std::string& sync_user_agent, |
| 26 const sync_pb::SyncEnums::DeviceType device_type, | 26 const sync_pb::SyncEnums::DeviceType device_type, |
| 27 const std::string& signin_scoped_device_id); | 27 const std::string& signin_scoped_device_id); |
| 28 ~LocalDeviceInfoProviderMock() override; | 28 ~LocalDeviceInfoProviderMock() override; |
| 29 | 29 |
| 30 const DeviceInfo* GetLocalDeviceInfo() const override; | 30 const DeviceInfo* GetLocalDeviceInfo() const override; |
| 31 std::string GetSyncUserAgent() const override; | 31 std::string GetSyncUserAgent() const override; |
| 32 std::string GetLocalSyncCacheGUID() const override; | 32 std::string GetLocalSyncCacheGUID() const override; |
| 33 void Initialize(const std::string& cache_guid, | 33 void Initialize( |
| 34 const std::string& signin_scoped_device_id) override; | 34 const std::string& cache_guid, |
| 35 const std::string& signin_scoped_device_id, |
| 36 const scoped_refptr<base::TaskRunner>& blocking_task_runner) override; |
| 35 scoped_ptr<Subscription> RegisterOnInitializedCallback( | 37 scoped_ptr<Subscription> RegisterOnInitializedCallback( |
| 36 const base::Closure& callback) override; | 38 const base::Closure& callback) override; |
| 37 | 39 |
| 38 void SetInitialized(bool is_initialized); | 40 void SetInitialized(bool is_initialized); |
| 39 | 41 |
| 40 private: | 42 private: |
| 41 bool is_initialized_; | 43 bool is_initialized_; |
| 42 | 44 |
| 43 scoped_ptr<DeviceInfo> local_device_info_; | 45 scoped_ptr<DeviceInfo> local_device_info_; |
| 44 base::CallbackList<void(void)> callback_list_; | 46 base::CallbackList<void(void)> callback_list_; |
| 45 }; | 47 }; |
| 46 | 48 |
| 47 } // namespace sync_driver | 49 } // namespace sync_driver |
| 48 | 50 |
| 49 #endif // COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ | 51 #endif // COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ |
| OLD | NEW |