| 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/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 | 965 |
| 966 // Verify that the cache entry is created. | 966 // Verify that the cache entry is created. |
| 967 FileCacheEntry cache_entry; | 967 FileCacheEntry cache_entry; |
| 968 ASSERT_TRUE(cache_->GetCacheEntry(id, &cache_entry)); | 968 ASSERT_TRUE(cache_->GetCacheEntry(id, &cache_entry)); |
| 969 | 969 |
| 970 // Clear cache. | 970 // Clear cache. |
| 971 EXPECT_TRUE(cache_->ClearAll()); | 971 EXPECT_TRUE(cache_->ClearAll()); |
| 972 | 972 |
| 973 // Verify that the cache is removed. | 973 // Verify that the cache is removed. |
| 974 EXPECT_FALSE(cache_->GetCacheEntry(id, &cache_entry)); | 974 EXPECT_FALSE(cache_->GetCacheEntry(id, &cache_entry)); |
| 975 EXPECT_TRUE(file_util::IsDirectoryEmpty(cache_files_dir_)); | 975 EXPECT_TRUE(base::IsDirectoryEmpty(cache_files_dir_)); |
| 976 } | 976 } |
| 977 | 977 |
| 978 } // namespace internal | 978 } // namespace internal |
| 979 } // namespace drive | 979 } // namespace drive |
| OLD | NEW |