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/core/attachments/on_disk_attachment_store.h" | 5 #include "components/sync/core/attachments/on_disk_attachment_store.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | |
10 #include <utility> | 9 #include <utility> |
11 | 10 |
12 #include "base/files/file_path.h" | |
13 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
14 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
15 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
16 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
17 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
18 #include "base/threading/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
19 #include "base/time/time.h" | 17 #include "base/time/time.h" |
20 #include "components/sync/core_impl/attachments/attachment_store_test_template.h
" | 18 #include "components/sync/core_impl/attachments/attachment_store_test_template.h
" |
21 #include "components/sync/core_impl/attachments/proto/attachment_store.pb.h" | 19 #include "components/sync/core_impl/attachments/proto/attachment_store.pb.h" |
22 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 store_->ReadMetadata( | 512 store_->ReadMetadata( |
515 base::Bind(&OnDiskAttachmentStoreSpecificTest::CopyResultMetadata, | 513 base::Bind(&OnDiskAttachmentStoreSpecificTest::CopyResultMetadata, |
516 base::Unretained(this), &metadata_result, &metadata_list)); | 514 base::Unretained(this), &metadata_result, &metadata_list)); |
517 RunLoop(); | 515 RunLoop(); |
518 EXPECT_EQ(AttachmentStore::SUCCESS, create_result); | 516 EXPECT_EQ(AttachmentStore::SUCCESS, create_result); |
519 EXPECT_EQ(AttachmentStore::UNSPECIFIED_ERROR, metadata_result); | 517 EXPECT_EQ(AttachmentStore::UNSPECIFIED_ERROR, metadata_result); |
520 EXPECT_EQ(2U, metadata_list->size()); | 518 EXPECT_EQ(2U, metadata_list->size()); |
521 } | 519 } |
522 | 520 |
523 } // namespace syncer | 521 } // namespace syncer |
OLD | NEW |