| 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/resource_metadata.h" | 5 #include "components/drive/chromeos/resource_metadata.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/files/scoped_temp_dir.h" | 14 #include "base/files/scoped_temp_dir.h" |
| 15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
| 16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
| 17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
| 18 #include "components/drive/chromeos/drive_test_util.h" | 18 #include "components/drive/chromeos/drive_test_util.h" |
| 19 #include "components/drive/chromeos/fake_free_disk_space_getter.h" | 19 #include "components/drive/chromeos/fake_free_disk_space_getter.h" |
| 20 #include "components/drive/chromeos/file_cache.h" | 20 #include "components/drive/chromeos/file_cache.h" |
| 21 #include "components/drive/drive.pb.h" | 21 #include "components/drive/drive.pb.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 "testing/gtest/include/gtest/gtest.h" | 24 #include "testing/gtest/include/gtest/gtest.h" |
| 25 | 25 |
| 26 namespace drive { | 26 namespace drive { |
| 27 namespace internal { | 27 namespace internal { |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 | 704 |
| 705 // The "trash" directory should be empty. | 705 // The "trash" directory should be empty. |
| 706 ASSERT_EQ(FILE_ERROR_OK, | 706 ASSERT_EQ(FILE_ERROR_OK, |
| 707 resource_metadata_->ReadDirectoryByPath( | 707 resource_metadata_->ReadDirectoryByPath( |
| 708 base::FilePath::FromUTF8Unsafe("drive/trash"), &entries)); | 708 base::FilePath::FromUTF8Unsafe("drive/trash"), &entries)); |
| 709 EXPECT_TRUE(entries.empty()); | 709 EXPECT_TRUE(entries.empty()); |
| 710 } | 710 } |
| 711 | 711 |
| 712 } // namespace internal | 712 } // namespace internal |
| 713 } // namespace drive | 713 } // namespace drive |
| OLD | NEW |