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 "chrome/browser/chromeos/drive/resource_metadata.h" | 5 #include "chrome/browser/chromeos/drive/resource_metadata.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
15 #include "chrome/browser/chromeos/drive/drive.pb.h" | 15 #include "chrome/browser/chromeos/drive/drive.pb.h" |
| 16 #include "chrome/browser/chromeos/drive/drive_test_util.h" |
16 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" | 17 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" |
17 #include "chrome/browser/chromeos/drive/file_cache.h" | 18 #include "chrome/browser/chromeos/drive/file_cache.h" |
18 #include "chrome/browser/chromeos/drive/file_system_core_util.h" | 19 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
19 #include "chrome/browser/chromeos/drive/test_util.h" | |
20 #include "content/public/test/test_browser_thread_bundle.h" | 20 #include "content/public/test/test_browser_thread_bundle.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 namespace { | 25 namespace { |
26 | 26 |
27 // The changestamp of the resource metadata used in | 27 // The changestamp of the resource metadata used in |
28 // ResourceMetadataTest. | 28 // ResourceMetadataTest. |
29 const int64 kTestChangestamp = 100; | 29 const int64 kTestChangestamp = 100; |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 | 700 |
701 // The "trash" directory should be empty. | 701 // The "trash" directory should be empty. |
702 ASSERT_EQ(FILE_ERROR_OK, | 702 ASSERT_EQ(FILE_ERROR_OK, |
703 resource_metadata_->ReadDirectoryByPath( | 703 resource_metadata_->ReadDirectoryByPath( |
704 base::FilePath::FromUTF8Unsafe("drive/trash"), &entries)); | 704 base::FilePath::FromUTF8Unsafe("drive/trash"), &entries)); |
705 EXPECT_TRUE(entries.empty()); | 705 EXPECT_TRUE(entries.empty()); |
706 } | 706 } |
707 | 707 |
708 } // namespace internal | 708 } // namespace internal |
709 } // namespace drive | 709 } // namespace drive |
OLD | NEW |