OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/drive/chromeos/change_list_processor.h" | 5 #include "components/drive/chromeos/change_list_processor.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "components/drive/chromeos/drive_test_util.h" | 16 #include "components/drive/chromeos/drive_test_util.h" |
17 #include "components/drive/chromeos/fake_free_disk_space_getter.h" | 17 #include "components/drive/chromeos/fake_free_disk_space_getter.h" |
18 #include "components/drive/chromeos/file_cache.h" | 18 #include "components/drive/chromeos/file_cache.h" |
19 #include "components/drive/chromeos/resource_metadata.h" | 19 #include "components/drive/chromeos/resource_metadata.h" |
20 #include "components/drive/drive.pb.h" | 20 #include "components/drive/drive.pb.h" |
21 #include "components/drive/file_change.h" | 21 #include "components/drive/file_change.h" |
22 #include "components/drive/file_system_core_util.h" | 22 #include "components/drive/file_system_core_util.h" |
23 #include "content/public/test/test_browser_thread_bundle.h" | 23 #include "content/public/test/test_browser_thread_bundle.h" |
24 #include "google_apis/drive/drive_api_parser.h" | 24 #include "google_apis/drive/drive_api_parser.h" |
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 ApplyChangeList(std::move(change_lists), &changed_files)); | 653 ApplyChangeList(std::move(change_lists), &changed_files)); |
654 | 654 |
655 // The change is rejected due to the old modification date. | 655 // The change is rejected due to the old modification date. |
656 ResourceEntry entry; | 656 ResourceEntry entry; |
657 EXPECT_EQ(FILE_ERROR_OK, metadata_->GetResourceEntryById(local_id, &entry)); | 657 EXPECT_EQ(FILE_ERROR_OK, metadata_->GetResourceEntryById(local_id, &entry)); |
658 EXPECT_EQ(new_file_local.title(), entry.title()); | 658 EXPECT_EQ(new_file_local.title(), entry.title()); |
659 } | 659 } |
660 | 660 |
661 } // namespace internal | 661 } // namespace internal |
662 } // namespace drive | 662 } // namespace drive |
OLD | NEW |