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

Unified Diff: net/disk_cache/block_files.h

Issue 165174: Try again: Check blockfile size before attempting to read the header. (Closed)
Patch Set: Created 11 years, 4 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
« no previous file with comments | « no previous file | net/disk_cache/block_files.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/block_files.h
diff --git a/net/disk_cache/block_files.h b/net/disk_cache/block_files.h
index 790cc7d4f45446f372c7fd545f2927a30bd36998..e86546eb98076382607f840119190e808154e46e 100644
--- a/net/disk_cache/block_files.h
+++ b/net/disk_cache/block_files.h
@@ -11,6 +11,7 @@
#include "net/disk_cache/addr.h"
#include "net/disk_cache/mapped_file.h"
+#include "testing/gtest/include/gtest/gtest_prod.h"
namespace disk_cache {
@@ -75,6 +76,8 @@ class BlockFiles {
std::wstring path_; // Path to the backing folder.
std::vector<MappedFile*> block_files_; // The actual files.
+ FRIEND_TEST(DiskCacheTest, BlockFiles_ZeroSizeFile);
+
DISALLOW_EVIL_CONSTRUCTORS(BlockFiles);
};
« no previous file with comments | « no previous file | net/disk_cache/block_files.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698