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 #ifndef COMPONENTS_SYNC_CORE_IMPL_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_H_ |
6 #define COMPONENTS_SYNC_CORE_IMPL_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_H_ | 6 #define COMPONENTS_SYNC_ENGINE_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
13 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/threading/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "components/sync/api/attachments/attachment.h" | 16 #include "components/sync/api/attachments/attachment.h" |
17 #include "components/sync/api/attachments/attachment_store.h" | 17 #include "components/sync/api/attachments/attachment_store.h" |
18 #include "components/sync/core/attachments/attachment_util.h" | 18 #include "components/sync/engine/attachments/attachment_util.h" |
19 #include "components/sync/protocol/sync.pb.h" | 19 #include "components/sync/protocol/sync.pb.h" |
20 #include "testing/gmock/include/gmock/gmock-matchers.h" | 20 #include "testing/gmock/include/gmock/gmock-matchers.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 // AttachmentStoreTest defines tests for AttachmentStore. To instantiate these | 23 // AttachmentStoreTest defines tests for AttachmentStore. To instantiate these |
24 // tests for a particular implementation you need to: | 24 // tests for a particular implementation you need to: |
25 // - Include this file in test. | 25 // - Include this file in test. |
26 // - Create factory class for attachment store that implements factory method. | 26 // - Create factory class for attachment store that implements factory method. |
27 // - add INSTANTIATE_TYPED_TEST_CASE_P statement. | 27 // - add INSTANTIATE_TYPED_TEST_CASE_P statement. |
28 // Here is how to do it for MyAttachmentStore: | 28 // Here is how to do it for MyAttachmentStore: |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 Write_RoundTrip, | 512 Write_RoundTrip, |
513 Read_OneNotFound, | 513 Read_OneNotFound, |
514 Drop_DropTwoButOnlyOneExists, | 514 Drop_DropTwoButOnlyOneExists, |
515 Drop_DoesNotExist, | 515 Drop_DoesNotExist, |
516 ReadMetadataById, | 516 ReadMetadataById, |
517 ReadMetadata, | 517 ReadMetadata, |
518 SetSyncReference_DropSyncReference); | 518 SetSyncReference_DropSyncReference); |
519 | 519 |
520 } // namespace syncer | 520 } // namespace syncer |
521 | 521 |
522 #endif // COMPONENTS_SYNC_CORE_IMPL_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_
H_ | 522 #endif // COMPONENTS_SYNC_ENGINE_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_H_ |
OLD | NEW |