Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: chrome/browser/chromeos/drive/file_cache_unittest.cc

Issue 93263002: Move some more file utils to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/sys_info_unittest.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/sys_info_unittest.cc ('k') | chrome/browser/chromeos/login/login_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698