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_DEVICE_INFO_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ |
6 #define COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ | 6 #define COMPONENTS_SYNC_DEVICE_INFO_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ |
7 | 7 |
| 8 #include <memory> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "components/sync/driver/device_info.h" | 11 #include "components/sync/device_info/device_info.h" |
11 #include "components/sync/driver/local_device_info_provider.h" | 12 #include "components/sync/device_info/local_device_info_provider.h" |
12 | 13 |
13 namespace sync_driver { | 14 namespace sync_driver { |
14 | 15 |
15 class LocalDeviceInfoProviderMock | 16 class LocalDeviceInfoProviderMock |
16 : public sync_driver::LocalDeviceInfoProvider { | 17 : public sync_driver::LocalDeviceInfoProvider { |
17 public: | 18 public: |
18 // Creates uninitialized provider. | 19 // Creates uninitialized provider. |
19 LocalDeviceInfoProviderMock(); | 20 LocalDeviceInfoProviderMock(); |
20 // Creates initialized provider with the specified device info. | 21 // Creates initialized provider with the specified device info. |
21 LocalDeviceInfoProviderMock(const std::string& guid, | 22 LocalDeviceInfoProviderMock(const std::string& guid, |
(...skipping 20 matching lines...) Expand all Loading... |
42 | 43 |
43 private: | 44 private: |
44 bool is_initialized_; | 45 bool is_initialized_; |
45 | 46 |
46 std::unique_ptr<DeviceInfo> local_device_info_; | 47 std::unique_ptr<DeviceInfo> local_device_info_; |
47 base::CallbackList<void(void)> callback_list_; | 48 base::CallbackList<void(void)> callback_list_; |
48 }; | 49 }; |
49 | 50 |
50 } // namespace sync_driver | 51 } // namespace sync_driver |
51 | 52 |
52 #endif // COMPONENTS_SYNC_DRIVER_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ | 53 #endif // COMPONENTS_SYNC_DEVICE_INFO_LOCAL_DEVICE_INFO_PROVIDER_MOCK_H_ |
OLD | NEW |