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 SYNC_INTERNAL_API_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_H_ | 5 #ifndef SYNC_INTERNAL_API_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_H_ |
6 #define SYNC_INTERNAL_API_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_H_ | 6 #define SYNC_INTERNAL_API_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_H_ |
7 | 7 |
8 #include "sync/api/attachments/attachment_store.h" | 8 #include "sync/api/attachments/attachment_store.h" |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 namespace syncer { | 40 namespace syncer { |
41 | 41 |
42 const char kTestData1[] = "test data 1"; | 42 const char kTestData1[] = "test data 1"; |
43 const char kTestData2[] = "test data 2"; | 43 const char kTestData2[] = "test data 2"; |
44 | 44 |
45 template <typename AttachmentStoreFactory> | 45 template <typename AttachmentStoreFactory> |
46 class AttachmentStoreTest : public testing::Test { | 46 class AttachmentStoreTest : public testing::Test { |
47 protected: | 47 protected: |
48 AttachmentStoreFactory attachment_store_factory; | 48 AttachmentStoreFactory attachment_store_factory; |
49 base::MessageLoop message_loop; | 49 base::MessageLoop message_loop; |
50 scoped_refptr<AttachmentStore> store; | 50 scoped_ptr<AttachmentStore> store; |
51 AttachmentStore::Result result; | 51 AttachmentStore::Result result; |
52 scoped_ptr<AttachmentMap> attachments; | 52 scoped_ptr<AttachmentMap> attachments; |
53 scoped_ptr<AttachmentIdList> failed_attachment_ids; | 53 scoped_ptr<AttachmentIdList> failed_attachment_ids; |
54 scoped_ptr<AttachmentMetadataList> attachment_metadata; | 54 scoped_ptr<AttachmentMetadataList> attachment_metadata; |
55 | 55 |
56 AttachmentStore::ReadCallback read_callback; | 56 AttachmentStore::ReadCallback read_callback; |
57 AttachmentStore::WriteCallback write_callback; | 57 AttachmentStore::WriteCallback write_callback; |
58 AttachmentStore::DropCallback drop_callback; | 58 AttachmentStore::DropCallback drop_callback; |
59 AttachmentStore::ReadMetadataCallback read_metadata_callback; | 59 AttachmentStore::ReadMetadataCallback read_metadata_callback; |
60 | 60 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 Write_RoundTrip, | 391 Write_RoundTrip, |
392 Read_OneNotFound, | 392 Read_OneNotFound, |
393 Drop_DropTwoButOnlyOneExists, | 393 Drop_DropTwoButOnlyOneExists, |
394 Drop_DoesNotExist, | 394 Drop_DoesNotExist, |
395 ReadMetadata, | 395 ReadMetadata, |
396 ReadAllMetadata); | 396 ReadAllMetadata); |
397 | 397 |
398 } // namespace syncer | 398 } // namespace syncer |
399 | 399 |
400 #endif // SYNC_INTERNAL_API_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_H_ | 400 #endif // SYNC_INTERNAL_API_ATTACHMENTS_ATTACHMENT_STORE_TEST_TEMPLATE_H_ |
OLD | NEW |