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 #include "components/sync/device_info/local_device_info_provider_mock.h" | 5 #include "components/sync/device_info/local_device_info_provider_mock.h" |
6 | 6 |
7 namespace syncer { | 7 namespace sync_driver { |
8 | 8 |
9 LocalDeviceInfoProviderMock::LocalDeviceInfoProviderMock() | 9 LocalDeviceInfoProviderMock::LocalDeviceInfoProviderMock() |
10 : is_initialized_(false) {} | 10 : is_initialized_(false) {} |
11 | 11 |
12 LocalDeviceInfoProviderMock::LocalDeviceInfoProviderMock( | 12 LocalDeviceInfoProviderMock::LocalDeviceInfoProviderMock( |
13 const std::string& guid, | 13 const std::string& guid, |
14 const std::string& client_name, | 14 const std::string& client_name, |
15 const std::string& chrome_version, | 15 const std::string& chrome_version, |
16 const std::string& sync_user_agent, | 16 const std::string& sync_user_agent, |
17 const sync_pb::SyncEnums::DeviceType device_type, | 17 const sync_pb::SyncEnums::DeviceType device_type, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 is_initialized_ = false; | 64 is_initialized_ = false; |
65 } | 65 } |
66 | 66 |
67 void LocalDeviceInfoProviderMock::SetInitialized(bool is_initialized) { | 67 void LocalDeviceInfoProviderMock::SetInitialized(bool is_initialized) { |
68 is_initialized_ = is_initialized; | 68 is_initialized_ = is_initialized; |
69 if (is_initialized_) { | 69 if (is_initialized_) { |
70 callback_list_.Notify(); | 70 callback_list_.Notify(); |
71 } | 71 } |
72 } | 72 } |
73 | 73 |
74 } // namespace syncer | 74 } // namespace sync_driver |
OLD | NEW |