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 "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "components/sync_driver/data_type_error_handler_mock.h" | 11 #include "components/sync_driver/data_type_error_handler_mock.h" |
12 #include "sync/api/attachments/fake_attachment_service.h" | 12 #include "sync/api/attachments/fake_attachment_service.h" |
13 #include "sync/api/attachments/fake_attachment_store.h" | |
14 #include "sync/api/attachments/fake_attachment_uploader.h" | |
15 #include "sync/api/fake_syncable_service.h" | 13 #include "sync/api/fake_syncable_service.h" |
16 #include "sync/api/sync_change.h" | 14 #include "sync/api/sync_change.h" |
17 #include "sync/api/sync_merge_result.h" | 15 #include "sync/api/sync_merge_result.h" |
| 16 #include "sync/internal_api/public/attachments/fake_attachment_store.h" |
| 17 #include "sync/internal_api/public/attachments/fake_attachment_uploader.h" |
18 #include "sync/internal_api/public/base/model_type.h" | 18 #include "sync/internal_api/public/base/model_type.h" |
19 #include "sync/internal_api/public/read_node.h" | 19 #include "sync/internal_api/public/read_node.h" |
20 #include "sync/internal_api/public/read_transaction.h" | 20 #include "sync/internal_api/public/read_transaction.h" |
21 #include "sync/internal_api/public/sync_encryption_handler.h" | 21 #include "sync/internal_api/public/sync_encryption_handler.h" |
22 #include "sync/internal_api/public/test/test_user_share.h" | 22 #include "sync/internal_api/public/test/test_user_share.h" |
23 #include "sync/internal_api/public/user_share.h" | 23 #include "sync/internal_api/public/user_share.h" |
24 #include "sync/internal_api/public/write_node.h" | 24 #include "sync/internal_api/public/write_node.h" |
25 #include "sync/internal_api/public/write_transaction.h" | 25 #include "sync/internal_api/public/write_transaction.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 | 27 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 ASSERT_EQ(mock_attachment_service()->attachment_lists()->size(), 1U); | 342 ASSERT_EQ(mock_attachment_service()->attachment_lists()->size(), 1U); |
343 const syncer::AttachmentList& new_attachments_added = | 343 const syncer::AttachmentList& new_attachments_added = |
344 mock_attachment_service()->attachment_lists()->front(); | 344 mock_attachment_service()->attachment_lists()->front(); |
345 ASSERT_EQ(new_attachments_added.size(), 1U); | 345 ASSERT_EQ(new_attachments_added.size(), 1U); |
346 ASSERT_EQ(new_attachments_added[0].GetId(), new_attachments[0].GetId()); | 346 ASSERT_EQ(new_attachments_added[0].GetId(), new_attachments[0].GetId()); |
347 } | 347 } |
348 | 348 |
349 } // namespace | 349 } // namespace |
350 | 350 |
351 } // namespace browser_sync | 351 } // namespace browser_sync |
OLD | NEW |