OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/chromeos/drive/sync/entry_update_performer.h" | 5 #include "chrome/browser/chromeos/drive/sync/entry_update_performer.h" |
6 | 6 |
7 #include "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/md5.h" | 9 #include "base/md5.h" |
10 #include "base/task_runner_util.h" | 10 #include "base/task_runner_util.h" |
11 #include "chrome/browser/chromeos/drive/file_cache.h" | 11 #include "chrome/browser/chromeos/drive/file_cache.h" |
12 #include "chrome/browser/chromeos/drive/file_system/download_operation.h" | 12 #include "chrome/browser/chromeos/drive/file_system/download_operation.h" |
13 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" | 13 #include "chrome/browser/chromeos/drive/file_system/operation_test_base.h" |
14 #include "chrome/browser/chromeos/drive/job_scheduler.h" | 14 #include "chrome/browser/chromeos/drive/job_scheduler.h" |
15 #include "chrome/browser/chromeos/drive/resource_metadata.h" | 15 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
16 #include "chrome/browser/drive/drive_api_util.h" | 16 #include "components/drive/drive_api_util.h" |
17 #include "chrome/browser/drive/fake_drive_service.h" | 17 #include "components/drive/service/fake_drive_service.h" |
18 #include "content/public/test/test_utils.h" | 18 #include "content/public/test/test_utils.h" |
19 #include "google_apis/drive/drive_api_parser.h" | 19 #include "google_apis/drive/drive_api_parser.h" |
20 #include "google_apis/drive/test_util.h" | 20 #include "google_apis/drive/test_util.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 namespace drive { | 23 namespace drive { |
24 namespace internal { | 24 namespace internal { |
25 | 25 |
26 class EntryUpdatePerformerTest : public file_system::OperationTestBase { | 26 class EntryUpdatePerformerTest : public file_system::OperationTestBase { |
27 protected: | 27 protected: |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 | 649 |
650 // This should result in reverting the local change. | 650 // This should result in reverting the local change. |
651 ResourceEntry result_entry; | 651 ResourceEntry result_entry; |
652 EXPECT_EQ(FILE_ERROR_OK, | 652 EXPECT_EQ(FILE_ERROR_OK, |
653 GetLocalResourceEntryById(src_entry.local_id(), &result_entry)); | 653 GetLocalResourceEntryById(src_entry.local_id(), &result_entry)); |
654 EXPECT_EQ(src_entry.title(), result_entry.title()); | 654 EXPECT_EQ(src_entry.title(), result_entry.title()); |
655 } | 655 } |
656 | 656 |
657 } // namespace internal | 657 } // namespace internal |
658 } // namespace drive | 658 } // namespace drive |
OLD | NEW |