| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/device_info_service.h" | 5 #include "components/sync/device_info/device_info_service.h" |
| 6 | 6 |
| 7 #include <algorithm> |
| 7 #include <set> | 8 #include <set> |
| 8 #include <utility> | 9 #include <utility> |
| 9 | 10 |
| 10 #include "base/bind.h" | 11 #include "base/bind.h" |
| 11 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
| 12 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 13 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 14 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 15 #include "components/sync/api/data_batch.h" | 16 #include "components/sync/api/data_batch.h" |
| 16 #include "components/sync/api/data_type_error_handler_mock.h" | 17 #include "components/sync/api/data_type_error_handler_mock.h" |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 specifics.set_cache_guid("non-local"); | 748 specifics.set_cache_guid("non-local"); |
| 748 PushBackEntityChangeAdd(specifics, &change_list); | 749 PushBackEntityChangeAdd(specifics, &change_list); |
| 749 service()->ApplySyncChanges(service()->CreateMetadataChangeList(), | 750 service()->ApplySyncChanges(service()->CreateMetadataChangeList(), |
| 750 change_list); | 751 change_list); |
| 751 EXPECT_EQ(1, service()->CountActiveDevices()); | 752 EXPECT_EQ(1, service()->CountActiveDevices()); |
| 752 } | 753 } |
| 753 | 754 |
| 754 } // namespace | 755 } // namespace |
| 755 | 756 |
| 756 } // namespace syncer | 757 } // namespace syncer |
| OLD | NEW |