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/file_cache.h" | 5 #include "chrome/browser/chromeos/drive/file_cache.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
11 #include "base/file_util.h" | |
12 #include "base/files/file_enumerator.h" | 11 #include "base/files/file_enumerator.h" |
| 12 #include "base/files/file_util.h" |
13 #include "base/files/scoped_temp_dir.h" | 13 #include "base/files/scoped_temp_dir.h" |
14 #include "base/md5.h" | 14 #include "base/md5.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "chrome/browser/chromeos/drive/drive.pb.h" | 16 #include "chrome/browser/chromeos/drive/drive.pb.h" |
17 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" | 17 #include "chrome/browser/chromeos/drive/fake_free_disk_space_getter.h" |
18 #include "chrome/browser/chromeos/drive/file_system_util.h" | 18 #include "chrome/browser/chromeos/drive/file_system_util.h" |
19 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h" | 19 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h" |
20 #include "chrome/browser/chromeos/drive/test_util.h" | 20 #include "chrome/browser/chromeos/drive/test_util.h" |
21 #include "content/public/test/test_browser_thread_bundle.h" | 21 #include "content/public/test/test_browser_thread_bundle.h" |
22 #include "google_apis/drive/test_util.h" | 22 #include "google_apis/drive/test_util.h" |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 | 551 |
552 // Clear cache. | 552 // Clear cache. |
553 EXPECT_TRUE(cache_->ClearAll()); | 553 EXPECT_TRUE(cache_->ClearAll()); |
554 | 554 |
555 // Verify that the cache is removed. | 555 // Verify that the cache is removed. |
556 EXPECT_TRUE(base::IsDirectoryEmpty(cache_files_dir_)); | 556 EXPECT_TRUE(base::IsDirectoryEmpty(cache_files_dir_)); |
557 } | 557 } |
558 | 558 |
559 } // namespace internal | 559 } // namespace internal |
560 } // namespace drive | 560 } // namespace drive |
OLD | NEW |