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

Unified Diff: net/disk_cache/cache_util_unittest.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/cache_util_unittest.cc
diff --git a/net/disk_cache/cache_util_unittest.cc b/net/disk_cache/cache_util_unittest.cc
index 3a05196828e6212e11352e58661f693410d45b50..ba22a281a360352e589db491658956be30d1bea4 100644
--- a/net/disk_cache/cache_util_unittest.cc
+++ b/net/disk_cache/cache_util_unittest.cc
@@ -21,7 +21,7 @@ class CacheUtilTest : public PlatformTest {
dir1_ = base::FilePath(cache_dir_.Append(FILE_PATH_LITERAL("dir01")));
file3_ = base::FilePath(dir1_.Append(FILE_PATH_LITERAL("file03")));
ASSERT_TRUE(base::CreateDirectory(cache_dir_));
- FILE *fp = base::OpenFile(file1_, "w");
+ FILE* fp = base::OpenFile(file1_, "w");
ASSERT_TRUE(fp != NULL);
base::CloseFile(fp);
fp = base::OpenFile(file2_, "w");
@@ -58,9 +58,9 @@ TEST_F(CacheUtilTest, MoveCache) {
EXPECT_TRUE(base::PathExists(dest_file2_));
EXPECT_TRUE(base::PathExists(dest_dir1_));
#if defined(OS_CHROMEOS)
- EXPECT_TRUE(base::PathExists(cache_dir_)); // old cache dir stays
+ EXPECT_TRUE(base::PathExists(cache_dir_)); // old cache dir stays
#else
- EXPECT_FALSE(base::PathExists(cache_dir_)); // old cache is gone
+ EXPECT_FALSE(base::PathExists(cache_dir_)); // old cache is gone
#endif
EXPECT_FALSE(base::PathExists(file1_));
EXPECT_FALSE(base::PathExists(file2_));
@@ -69,7 +69,7 @@ TEST_F(CacheUtilTest, MoveCache) {
TEST_F(CacheUtilTest, DeleteCache) {
disk_cache::DeleteCache(cache_dir_, false);
- EXPECT_TRUE(base::PathExists(cache_dir_)); // cache dir stays
+ EXPECT_TRUE(base::PathExists(cache_dir_)); // cache dir stays
EXPECT_FALSE(base::PathExists(dir1_));
EXPECT_FALSE(base::PathExists(file1_));
EXPECT_FALSE(base::PathExists(file2_));
@@ -78,7 +78,7 @@ TEST_F(CacheUtilTest, DeleteCache) {
TEST_F(CacheUtilTest, DeleteCacheAndDir) {
disk_cache::DeleteCache(cache_dir_, true);
- EXPECT_FALSE(base::PathExists(cache_dir_)); // cache dir is gone
+ EXPECT_FALSE(base::PathExists(cache_dir_)); // cache dir is gone
EXPECT_FALSE(base::PathExists(dir1_));
EXPECT_FALSE(base::PathExists(file1_));
EXPECT_FALSE(base::PathExists(file2_));
@@ -88,7 +88,7 @@ TEST_F(CacheUtilTest, DeleteCacheAndDir) {
TEST_F(CacheUtilTest, DeleteCacheFile) {
EXPECT_TRUE(disk_cache::DeleteCacheFile(file1_));
EXPECT_FALSE(base::PathExists(file1_));
- EXPECT_TRUE(base::PathExists(cache_dir_)); // cache dir stays
+ EXPECT_TRUE(base::PathExists(cache_dir_)); // cache dir stays
EXPECT_TRUE(base::PathExists(dir1_));
EXPECT_TRUE(base::PathExists(file3_));
}

Powered by Google App Engine
This is Rietveld 408576698