| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "net/disk_cache/storage_block.h" | 6 #include "net/disk_cache/storage_block.h" |
| 7 #include "net/disk_cache/storage_block-inl.h" | 7 #include "net/disk_cache/storage_block-inl.h" |
| 8 #include "net/disk_cache/disk_cache_test_base.h" | 8 #include "net/disk_cache/disk_cache_test_base.h" |
| 9 #include "net/disk_cache/disk_cache_test_util.h" | 9 #include "net/disk_cache/disk_cache_test_util.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 EXPECT_TRUE(entry1->Load()); | 63 EXPECT_TRUE(entry1->Load()); |
| 64 EXPECT_TRUE(0 == entry1->Data()->hash); | 64 EXPECT_TRUE(0 == entry1->Data()->hash); |
| 65 entry1->Data()->hash = 0x45687912; | 65 entry1->Data()->hash = 0x45687912; |
| 66 entry1->set_modified(); | 66 entry1->set_modified(); |
| 67 delete entry1; | 67 delete entry1; |
| 68 | 68 |
| 69 disk_cache::CacheEntryBlock entry2(file, disk_cache::Addr(0xa0010003)); | 69 disk_cache::CacheEntryBlock entry2(file, disk_cache::Addr(0xa0010003)); |
| 70 EXPECT_TRUE(entry2.Load()); | 70 EXPECT_TRUE(entry2.Load()); |
| 71 EXPECT_TRUE(0x45687912 == entry2.Data()->hash); | 71 EXPECT_TRUE(0x45687912 == entry2.Data()->hash); |
| 72 } | 72 } |
| 73 | |
| OLD | NEW |