| 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_driver/generic_change_processor.h" | 5 #include "components/sync_driver/generic_change_processor.h" |
| 6 | 6 |
| 7 #include <string> |
| 8 |
| 7 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 9 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
| 11 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 12 #include "components/sync_driver/data_type_error_handler_mock.h" | 14 #include "components/sync_driver/data_type_error_handler_mock.h" |
| 13 #include "components/sync_driver/fake_sync_client.h" | 15 #include "components/sync_driver/fake_sync_client.h" |
| 14 #include "components/sync_driver/local_device_info_provider.h" | 16 #include "components/sync_driver/local_device_info_provider.h" |
| 15 #include "components/sync_driver/sync_api_component_factory.h" | 17 #include "components/sync_driver/sync_api_component_factory.h" |
| 16 #include "sync/api/attachments/attachment_id.h" | 18 #include "sync/api/attachments/attachment_id.h" |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 syncer::SyncDataList sync_data = | 539 syncer::SyncDataList sync_data = |
| 538 change_processor()->GetAllSyncData(syncer::SESSIONS); | 540 change_processor()->GetAllSyncData(syncer::SESSIONS); |
| 539 ASSERT_EQ(sync_data.size(), 1U); | 541 ASSERT_EQ(sync_data.size(), 1U); |
| 540 ASSERT_EQ("session tag 2", | 542 ASSERT_EQ("session tag 2", |
| 541 sync_data[0].GetSpecifics().session().session_tag()); | 543 sync_data[0].GetSpecifics().session().session_tag()); |
| 542 } | 544 } |
| 543 | 545 |
| 544 } // namespace | 546 } // namespace |
| 545 | 547 |
| 546 } // namespace sync_driver | 548 } // namespace sync_driver |
| OLD | NEW |