diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 19:53:41 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 19:53:41 +0000 |
commit | ea017cd9161be91169c40b456252123a74af693a (patch) | |
tree | 4aef66313e11af3ef979eee626fbeeb0dfa7c8b4 /webkit/fileapi | |
parent | 07ed5c08bd35f15f34d723eadf17ebf81a55b418 (diff) | |
download | chromium_src-ea017cd9161be91169c40b456252123a74af693a.zip chromium_src-ea017cd9161be91169c40b456252123a74af693a.tar.gz chromium_src-ea017cd9161be91169c40b456252123a74af693a.tar.bz2 |
Fix clang build.
BUG=none
TEST=none
TBR=jcivelli,dmikurube
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi')
-rw-r--r-- | webkit/fileapi/file_system_usage_cache_unittest.cc | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/webkit/fileapi/file_system_usage_cache_unittest.cc b/webkit/fileapi/file_system_usage_cache_unittest.cc index f74bdbb..bf9ec78 100644 --- a/webkit/fileapi/file_system_usage_cache_unittest.cc +++ b/webkit/fileapi/file_system_usage_cache_unittest.cc @@ -56,8 +56,7 @@ TEST_F(FileSystemUsageCacheTest, IncAndGetSizeTest) { FilePath usage_file_path = GetUsageFilePath(); ASSERT_EQ(FileSystemUsageCache::kUsageFileSize, FileSystemUsageCache::UpdateUsage(usage_file_path, 98214)); - ASSERT_EQ(true, - FileSystemUsageCache::IncrementDirty(usage_file_path)); + ASSERT_TRUE(FileSystemUsageCache::IncrementDirty(usage_file_path)); EXPECT_EQ(-1, FileSystemUsageCache::GetUsage(usage_file_path)); } @@ -67,8 +66,7 @@ TEST_F(FileSystemUsageCacheTest, DecAndGetSizeTest) { ASSERT_EQ(FileSystemUsageCache::kUsageFileSize, FileSystemUsageCache::UpdateUsage(usage_file_path, size)); // DecrementDirty for dirty = 0 is invalid. It returns false. - ASSERT_EQ(false, - FileSystemUsageCache::DecrementDirty(usage_file_path)); + ASSERT_FALSE(FileSystemUsageCache::DecrementDirty(usage_file_path)); EXPECT_EQ(size, FileSystemUsageCache::GetUsage(usage_file_path)); } @@ -77,10 +75,8 @@ TEST_F(FileSystemUsageCacheTest, IncDecAndGetSizeTest) { FilePath usage_file_path = GetUsageFilePath(); ASSERT_EQ(FileSystemUsageCache::kUsageFileSize, FileSystemUsageCache::UpdateUsage(usage_file_path, size)); - ASSERT_EQ(true, - FileSystemUsageCache::IncrementDirty(usage_file_path)); - ASSERT_EQ(true, - FileSystemUsageCache::DecrementDirty(usage_file_path)); + ASSERT_TRUE(FileSystemUsageCache::IncrementDirty(usage_file_path)); + ASSERT_TRUE(FileSystemUsageCache::DecrementDirty(usage_file_path)); EXPECT_EQ(size, FileSystemUsageCache::GetUsage(usage_file_path)); } @@ -89,10 +85,8 @@ TEST_F(FileSystemUsageCacheTest, DecIncAndGetSizeTest) { ASSERT_EQ(FileSystemUsageCache::kUsageFileSize, FileSystemUsageCache::UpdateUsage(usage_file_path, 854238)); // DecrementDirty for dirty = 0 is invalid. It returns false. - ASSERT_EQ(false, - FileSystemUsageCache::DecrementDirty(usage_file_path)); - ASSERT_EQ(true, - FileSystemUsageCache::IncrementDirty(usage_file_path)); + ASSERT_FALSE(FileSystemUsageCache::DecrementDirty(usage_file_path)); + ASSERT_TRUE(FileSystemUsageCache::IncrementDirty(usage_file_path)); // It tests DecrementDirty (which returns false) has no effect, i.e // does not make dirty = -1 after DecrementDirty. EXPECT_EQ(-1, FileSystemUsageCache::GetUsage(usage_file_path)); @@ -104,12 +98,10 @@ TEST_F(FileSystemUsageCacheTest, ManyIncsSameDecsAndGetSizeTest) { ASSERT_EQ(FileSystemUsageCache::kUsageFileSize, FileSystemUsageCache::UpdateUsage(usage_file_path, size)); for (int i = 0; i < 20; i++) { - ASSERT_EQ(true, - FileSystemUsageCache::IncrementDirty(usage_file_path)); + ASSERT_TRUE(FileSystemUsageCache::IncrementDirty(usage_file_path)); } for (int i = 0; i < 20; i++) { - ASSERT_EQ(true, - FileSystemUsageCache::DecrementDirty(usage_file_path)); + ASSERT_TRUE(FileSystemUsageCache::DecrementDirty(usage_file_path)); } EXPECT_EQ(size, FileSystemUsageCache::GetUsage(usage_file_path)); } @@ -119,12 +111,10 @@ TEST_F(FileSystemUsageCacheTest, ManyIncsLessDecsAndGetSizeTest) { ASSERT_EQ(FileSystemUsageCache::kUsageFileSize, FileSystemUsageCache::UpdateUsage(usage_file_path, 19319)); for (int i = 0; i < 20; i++) { - ASSERT_EQ(true, - FileSystemUsageCache::IncrementDirty(usage_file_path)); + ASSERT_TRUE(FileSystemUsageCache::IncrementDirty(usage_file_path)); } for (int i = 0; i < 19; i++) { - ASSERT_EQ(true, - FileSystemUsageCache::DecrementDirty(usage_file_path)); + ASSERT_TRUE(FileSystemUsageCache::DecrementDirty(usage_file_path)); } EXPECT_EQ(-1, FileSystemUsageCache::GetUsage(usage_file_path)); } @@ -136,10 +126,10 @@ TEST_F(FileSystemUsageCacheTest, GetSizeWithoutCacheFileTest) { TEST_F(FileSystemUsageCacheTest, IncrementDirtyWithoutCacheFileTest) { FilePath usage_file_path = GetUsageFilePath(); - EXPECT_EQ(false, FileSystemUsageCache::IncrementDirty(usage_file_path)); + EXPECT_FALSE(FileSystemUsageCache::IncrementDirty(usage_file_path)); } TEST_F(FileSystemUsageCacheTest, DecrementDirtyWithoutCacheFileTest) { FilePath usage_file_path = GetUsageFilePath(); - EXPECT_EQ(false, FileSystemUsageCache::IncrementDirty(usage_file_path)); + EXPECT_FALSE(FileSystemUsageCache::IncrementDirty(usage_file_path)); } |