| 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/api/sync_data.h" | 5 #include "components/sync/api/sync_data.h" |
| 6 | 6 |
| 7 #include <stdint.h> | |
| 8 | |
| 9 #include <memory> | 7 #include <memory> |
| 10 #include <string> | |
| 11 | 8 |
| 12 #include "base/memory/ref_counted_memory.h" | 9 #include "base/memory/ref_counted_memory.h" |
| 13 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "base/time/time.h" | |
| 16 #include "components/sync/api/attachments/attachment_id.h" | |
| 17 #include "components/sync/core/attachments/attachment_service.h" | 12 #include "components/sync/core/attachments/attachment_service.h" |
| 18 #include "components/sync/core/attachments/attachment_service_impl.h" | 13 #include "components/sync/core/attachments/attachment_service_impl.h" |
| 19 #include "components/sync/core/attachments/attachment_service_proxy.h" | |
| 20 #include "components/sync/protocol/sync.pb.h" | 14 #include "components/sync/protocol/sync.pb.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 16 |
| 23 using std::string; | 17 using std::string; |
| 24 | 18 |
| 25 namespace syncer { | 19 namespace syncer { |
| 26 | 20 |
| 27 namespace { | 21 namespace { |
| 28 | 22 |
| 29 const char kSyncTag[] = "3984729834"; | 23 const char kSyncTag[] = "3984729834"; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 EXPECT_TRUE(data.GetSpecifics().has_preference()); | 111 EXPECT_TRUE(data.GetSpecifics().has_preference()); |
| 118 EXPECT_TRUE(data.GetAttachmentIds().empty()); | 112 EXPECT_TRUE(data.GetAttachmentIds().empty()); |
| 119 } | 113 } |
| 120 | 114 |
| 121 // TODO(maniscalco): Add test cases that verify GetLocalAttachmentsForUpload | 115 // TODO(maniscalco): Add test cases that verify GetLocalAttachmentsForUpload |
| 122 // calls are passed through to the underlying AttachmentService. | 116 // calls are passed through to the underlying AttachmentService. |
| 123 | 117 |
| 124 } // namespace | 118 } // namespace |
| 125 | 119 |
| 126 } // namespace syncer | 120 } // namespace syncer |
| OLD | NEW |