diff options
author | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-28 00:59:06 +0000 |
---|---|---|
committer | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-28 00:59:06 +0000 |
commit | 4d5e036157b6fa024f0a7e0659c0559bbfc8dfcb (patch) | |
tree | 6604c15b12a8452c9ee2374d776ebb5877495591 /net/disk_cache/storage_block_unittest.cc | |
parent | 1e1402c1e5399edaa536ca41d6d8ec1c0735539c (diff) | |
download | chromium_src-4d5e036157b6fa024f0a7e0659c0559bbfc8dfcb.zip chromium_src-4d5e036157b6fa024f0a7e0659c0559bbfc8dfcb.tar.gz chromium_src-4d5e036157b6fa024f0a7e0659c0559bbfc8dfcb.tar.bz2 |
Run some disk cache unit tests on the Mac
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/storage_block_unittest.cc')
-rw-r--r-- | net/disk_cache/storage_block_unittest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/disk_cache/storage_block_unittest.cc b/net/disk_cache/storage_block_unittest.cc index fb89d36..4f172e0 100644 --- a/net/disk_cache/storage_block_unittest.cc +++ b/net/disk_cache/storage_block_unittest.cc @@ -5,10 +5,11 @@ #include "base/file_util.h" #include "net/disk_cache/storage_block.h" #include "net/disk_cache/storage_block-inl.h" +#include "net/disk_cache/disk_cache_test_base.h" #include "net/disk_cache/disk_cache_test_util.h" #include "testing/gtest/include/gtest/gtest.h" -TEST(DiskCacheTest, StorageBlock_LoadStore) { +TEST_F(DiskCacheTest, StorageBlock_LoadStore) { std::wstring filename = GetCachePath(); file_util::AppendToPath(&filename, L"a_test"); scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); @@ -29,7 +30,7 @@ TEST(DiskCacheTest, StorageBlock_LoadStore) { EXPECT_EQ(0xa0010002, entry1.Data()->rankings_node); } -TEST(DiskCacheTest, StorageBlock_SetData) { +TEST_F(DiskCacheTest, StorageBlock_SetData) { std::wstring filename = GetCachePath(); file_util::AppendToPath(&filename, L"a_test"); scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); @@ -50,7 +51,7 @@ TEST(DiskCacheTest, StorageBlock_SetData) { EXPECT_TRUE(entry2.Data() == entry1.Data()); } -TEST(DiskCacheTest, StorageBlock_SetModified) { +TEST_F(DiskCacheTest, StorageBlock_SetModified) { std::wstring filename = GetCachePath(); file_util::AppendToPath(&filename, L"a_test"); scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); |