summaryrefslogtreecommitdiffstats
path: root/net/data
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 00:57:44 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-21 00:57:44 +0000
commit31c43f9febd4add9229c54883401986585b6429e (patch)
treee21ca55c0e8a0d2ef6d89698597424e6f8a00de3 /net/data
parent9d147ab8f00b8a1d4ba893b706c1e7749dae9bfa (diff)
downloadchromium_src-31c43f9febd4add9229c54883401986585b6429e.zip
chromium_src-31c43f9febd4add9229c54883401986585b6429e.tar.gz
chromium_src-31c43f9febd4add9229c54883401986585b6429e.tar.bz2
Disk cache: More data files for unit tests.
BUG=69135 TEST=none TBR=gavinp Review URL: http://codereview.chromium.org/6300009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/data')
-rw-r--r--net/data/cache_tests/dirty_entry3/contents.txt183
-rw-r--r--net/data/cache_tests/dirty_entry3/data_0bin0 -> 45056 bytes
-rw-r--r--net/data/cache_tests/dirty_entry3/data_1bin0 -> 270336 bytes
-rw-r--r--net/data/cache_tests/dirty_entry3/data_2bin0 -> 8192 bytes
-rw-r--r--net/data/cache_tests/dirty_entry3/data_3bin0 -> 8192 bytes
-rw-r--r--net/data/cache_tests/dirty_entry3/indexbin0 -> 262512 bytes
-rw-r--r--net/data/cache_tests/dirty_entry4/contents.txt183
-rw-r--r--net/data/cache_tests/dirty_entry4/data_0bin0 -> 45056 bytes
-rw-r--r--net/data/cache_tests/dirty_entry4/data_1bin0 -> 270336 bytes
-rw-r--r--net/data/cache_tests/dirty_entry4/data_2bin0 -> 8192 bytes
-rw-r--r--net/data/cache_tests/dirty_entry4/data_3bin0 -> 8192 bytes
-rw-r--r--net/data/cache_tests/dirty_entry4/indexbin0 -> 262512 bytes
-rw-r--r--net/data/cache_tests/list_loop2/contents.txt145
-rw-r--r--net/data/cache_tests/list_loop2/data_0bin0 -> 45056 bytes
-rw-r--r--net/data/cache_tests/list_loop2/data_1bin0 -> 270336 bytes
-rw-r--r--net/data/cache_tests/list_loop2/data_2bin0 -> 8192 bytes
-rw-r--r--net/data/cache_tests/list_loop2/data_3bin0 -> 8192 bytes
-rw-r--r--net/data/cache_tests/list_loop2/indexbin0 -> 262512 bytes
-rw-r--r--net/data/cache_tests/list_loop3/contents.txt265
-rw-r--r--net/data/cache_tests/list_loop3/data_0bin0 -> 45056 bytes
-rw-r--r--net/data/cache_tests/list_loop3/data_1bin0 -> 270336 bytes
-rw-r--r--net/data/cache_tests/list_loop3/data_2bin0 -> 8192 bytes
-rw-r--r--net/data/cache_tests/list_loop3/data_3bin0 -> 8192 bytes
-rw-r--r--net/data/cache_tests/list_loop3/indexbin0 -> 262512 bytes
24 files changed, 776 insertions, 0 deletions
diff --git a/net/data/cache_tests/dirty_entry3/contents.txt b/net/data/cache_tests/dirty_entry3/contents.txt
new file mode 100644
index 0000000..b2aa37a
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry3/contents.txt
@@ -0,0 +1,183 @@
+Index file:
+magic: c103cac3
+version: 2.0
+entries: 3 <---- there is an extra entry on the lru.
+total bytes: 40
+last file number: 0
+current id: 4
+table length: 65536
+last crash: 0
+experiment: 0
+head 0: 0x90000002
+tail 0: 0x90000000
+size 0: 0x0
+head 1: 0x0
+tail 1: 0x0
+size 1: 0x0
+head 2: 0x0
+tail 2: 0x0
+size 2: 0x0
+head 3: 0x0
+tail 3: 0x0
+size 3: 0x0
+head 4: 0x0
+tail 4: 0x0
+size 4: 0x0
+transaction: 0x0
+operation: 0
+operation list: 0
+-------------------------
+
+Block file: data_0
+magic: c104cac3
+version: 2.0
+file id: 0
+next file id: 0
+entry size: 36
+current entries: 3
+max entries: 1024
+updating: 0
+empty sz 1: 1
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 255
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_1
+magic: c104cac3
+version: 2.0
+file id: 1
+next file id: 0
+entry size: 256
+current entries: 4
+max entries: 1024
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 1
+empty sz 4: 254
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_2
+magic: c104cac3
+version: 2.0
+file id: 2
+next file id: 0
+entry size: 1024
+current entries: 0
+max entries: 0
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 0
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_3
+magic: c104cac3
+version: 2.0
+file id: 3
+next file id: 0
+entry size: 4096
+current entries: 0
+max entries: 0
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 0
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Entry at 0xa0010003
+hash: 0xb16af282
+next entry: 0xa0010004
+rankings: 0x90000001
+key length: 14
+key: "The Second key"
+key addr: 0x0
+reuse count: 0
+refetch count: 0
+state: 0
+data size 0: 0
+data addr 0: 0x0
+data size 1: 0
+data addr 1: 0x0
+data size 2: 0
+data addr 2: 0x0
+data size 3: 0
+data addr 3: 0x0
+----------
+
+Rankings at 0x90000001
+next: 0x90000000
+prev: 0x90000002
+entry: 0xa0010003
+dirty: 0
+pointer: 0x0
+----------
+
+Entry at 0xa0010004
+hash: 0xc24ac438
+next entry: 0x0
+rankings: 0x90000002
+key length: 13
+key: "The first key"
+key addr: 0x0
+reuse count: 0
+refetch count: 0
+state: 0
+data size 0: 0
+data addr 0: 0x0
+data size 1: 0
+data addr 1: 0x0
+data size 2: 0
+data addr 2: 0x0
+data size 3: 0
+data addr 3: 0x0
+----------
+
+Rankings at 0x90000002
+next: 0x90000001
+prev: 0x90000002
+entry: 0xa0010004
+dirty: 0
+pointer: 0x0
+
+================================
+
+Generated with: (see steps on the bug 69135)
+
+ SetMask(0x1); // 2-entry table.
+ SetMaxSize(0x3000); // 12 kB.
+ InitCache();
+
+ std::string key1("The first key");
+ std::string key2("The Second key");
+ disk_cache::Entry* entry;
+
+ ASSERT_EQ(net::OK, CreateEntry(key1, &entry));
+ entry->Close();
+ ASSERT_EQ(net::OK, CreateEntry(key2, &entry));
+ entry->Close();
+ ASSERT_EQ(net::OK, OpenEntry(key1, &entry)); <--- 1st crash.
+
+ ASSERT_EQ(net::OK, OpenEntry(key1, &entry)); <--- 2nd crash.
+
+ ASSERT_EQ(net::OK, CreateEntry(key1, &entry));
+ entry->Close(); \ No newline at end of file
diff --git a/net/data/cache_tests/dirty_entry3/data_0 b/net/data/cache_tests/dirty_entry3/data_0
new file mode 100644
index 0000000..77dd0ae
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry3/data_0
Binary files differ
diff --git a/net/data/cache_tests/dirty_entry3/data_1 b/net/data/cache_tests/dirty_entry3/data_1
new file mode 100644
index 0000000..baeff3c
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry3/data_1
Binary files differ
diff --git a/net/data/cache_tests/dirty_entry3/data_2 b/net/data/cache_tests/dirty_entry3/data_2
new file mode 100644
index 0000000..c7e2eb9
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry3/data_2
Binary files differ
diff --git a/net/data/cache_tests/dirty_entry3/data_3 b/net/data/cache_tests/dirty_entry3/data_3
new file mode 100644
index 0000000..5eec973
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry3/data_3
Binary files differ
diff --git a/net/data/cache_tests/dirty_entry3/index b/net/data/cache_tests/dirty_entry3/index
new file mode 100644
index 0000000..d387abe
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry3/index
Binary files differ
diff --git a/net/data/cache_tests/dirty_entry4/contents.txt b/net/data/cache_tests/dirty_entry4/contents.txt
new file mode 100644
index 0000000..a1c8f0d
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry4/contents.txt
@@ -0,0 +1,183 @@
+Index file:
+magic: c103cac3
+version: 2.1
+entries: 3
+total bytes: 40
+last file number: 0
+current id: 4
+table length: 65536
+last crash: 0
+experiment: 0
+head 0: 0x90000002
+tail 0: 0x90000001
+size 0: 0x2
+head 1: 0x0
+tail 1: 0x0
+size 1: 0x0
+head 2: 0x0
+tail 2: 0x0
+size 2: 0x0
+head 3: 0x0
+tail 3: 0x0
+size 3: 0x0
+head 4: 0x90000000
+tail 4: 0x90000000
+size 4: 0x1
+transaction: 0x0
+operation: 0
+operation list: 0
+-------------------------
+
+Block file: data_0
+magic: c104cac3
+version: 2.0
+file id: 0
+next file id: 0
+entry size: 36
+current entries: 3
+max entries: 1024
+updating: 0
+empty sz 1: 1
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 255
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_1
+magic: c104cac3
+version: 2.0
+file id: 1
+next file id: 0
+entry size: 256
+current entries: 4
+max entries: 1024
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 1
+empty sz 4: 254
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_2
+magic: c104cac3
+version: 2.0
+file id: 2
+next file id: 0
+entry size: 1024
+current entries: 0
+max entries: 0
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 0
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_3
+magic: c104cac3
+version: 2.0
+file id: 3
+next file id: 0
+entry size: 4096
+current entries: 0
+max entries: 0
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 0
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Entry at 0xa0010003
+hash: 0xb16af282
+next entry: 0xa0010004
+rankings: 0x90000001
+key length: 14
+key: "The Second key"
+key addr: 0x0
+reuse count: 0
+refetch count: 0
+state: 0
+data size 0: 0
+data addr 0: 0x0
+data size 1: 0
+data addr 1: 0x0
+data size 2: 0
+data addr 2: 0x0
+data size 3: 0
+data addr 3: 0x0
+----------
+
+Rankings at 0x90000001
+next: 0x90000001
+prev: 0x90000002
+entry: 0xa0010003
+dirty: 0
+pointer: 0x0
+----------
+
+Entry at 0xa0010004
+hash: 0xc24ac438
+next entry: 0x0
+rankings: 0x90000002
+key length: 13
+key: "The first key"
+key addr: 0x0
+reuse count: 0
+refetch count: 0
+state: 0
+data size 0: 0
+data addr 0: 0x0
+data size 1: 0
+data addr 1: 0x0
+data size 2: 0
+data addr 2: 0x0
+data size 3: 0
+data addr 3: 0x0
+----------
+
+Rankings at 0x90000002
+next: 0x90000001
+prev: 0x90000002
+entry: 0xa0010004
+dirty: 0
+pointer: 0x0
+
+================================
+
+Generated with: (see steps on the bug 69135)
+
+ SetMask(0x1); // 2-entry table.
+ SetMaxSize(0x3000); // 12 kB.
+ SetNewEviction();
+ InitCache();
+
+ std::string key1("The first key");
+ std::string key2("The Second key");
+ disk_cache::Entry* entry;
+
+ ASSERT_EQ(net::OK, CreateEntry(key1, &entry));
+ entry->Close();
+ ASSERT_EQ(net::OK, CreateEntry(key2, &entry));
+ DoomAllEntries(); <--- First crash. Fix key2 dirty flag.
+
+ ASSERT_EQ(net::OK, OpenEntry(key1, &entry)); <--- Second crash
+
+ ASSERT_EQ(net::OK, CreateEntry(key1, &entry));
+ entry->Close(); \ No newline at end of file
diff --git a/net/data/cache_tests/dirty_entry4/data_0 b/net/data/cache_tests/dirty_entry4/data_0
new file mode 100644
index 0000000..702f5c7
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry4/data_0
Binary files differ
diff --git a/net/data/cache_tests/dirty_entry4/data_1 b/net/data/cache_tests/dirty_entry4/data_1
new file mode 100644
index 0000000..35dacdf
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry4/data_1
Binary files differ
diff --git a/net/data/cache_tests/dirty_entry4/data_2 b/net/data/cache_tests/dirty_entry4/data_2
new file mode 100644
index 0000000..c7e2eb9
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry4/data_2
Binary files differ
diff --git a/net/data/cache_tests/dirty_entry4/data_3 b/net/data/cache_tests/dirty_entry4/data_3
new file mode 100644
index 0000000..5eec973
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry4/data_3
Binary files differ
diff --git a/net/data/cache_tests/dirty_entry4/index b/net/data/cache_tests/dirty_entry4/index
new file mode 100644
index 0000000..e3e9f57
--- /dev/null
+++ b/net/data/cache_tests/dirty_entry4/index
Binary files differ
diff --git a/net/data/cache_tests/list_loop2/contents.txt b/net/data/cache_tests/list_loop2/contents.txt
new file mode 100644
index 0000000..da7d1dc
--- /dev/null
+++ b/net/data/cache_tests/list_loop2/contents.txt
@@ -0,0 +1,145 @@
+Index file:
+magic: c103cac3
+version: 2.0
+entries: 2
+total bytes: 27
+last file number: 0
+current id: 5
+table length: 65536
+last crash: 1
+experiment: 0
+head 0: 0x90000002
+tail 0: 0x90000001
+size 0: 0x2
+head 1: 0x0
+tail 1: 0x0
+size 1: 0x0
+head 2: 0x0
+tail 2: 0x0
+size 2: 0x0
+head 3: 0x0
+tail 3: 0x0
+size 3: 0x0
+head 4: 0x0
+tail 4: 0x0
+size 4: 0x0
+transaction: 0x0
+operation: 0
+operation list: 0
+-------------------------
+
+Block file: data_0
+magic: c104cac3
+version: 2.0
+file id: 0
+next file id: 0
+entry size: 36
+current entries: 2
+max entries: 1024
+updating: 0
+empty sz 1: 1
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 255
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_1
+magic: c104cac3
+version: 2.0
+file id: 1
+next file id: 0
+entry size: 256
+current entries: 3
+max entries: 1024
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 1
+empty sz 4: 254
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_2
+magic: c104cac3
+version: 2.0
+file id: 2
+next file id: 0
+entry size: 1024
+current entries: 0
+max entries: 0
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 0
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_3
+magic: c104cac3
+version: 2.0
+file id: 3
+next file id: 0
+entry size: 4096
+current entries: 0
+max entries: 0
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 0
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Entry at 0xa0010003
+hash: 0xb16af282
+next entry: 0xa0010003
+rankings: 0x90000001
+key length: 14
+key: "The Second key"
+key addr: 0x0
+reuse count: 0
+refetch count: 0
+state: 0
+data size 0: 0
+data addr 0: 0x0
+data size 1: 0
+data addr 1: 0x0
+data size 2: 0
+data addr 2: 0x0
+data size 3: 0
+data addr 3: 0x0
+----------
+
+Rankings at 0x90000001
+next: 0x90000001
+prev: 0x90000002
+entry: 0xa0010003
+dirty: 0
+pointer: 0x0
+
+================================
+
+Generated with: (see steps on the bug 69135)
+
+ ASSERT_TRUE(CopyTestCache("dirty_entry4"));
+ SetNewEviction();
+ SetMask(0x1); // 2-entry table.
+ SetMaxSize(0x3000); // 12 kB.
+ DisableFirstCleanup();
+ InitCache();
+
+ TrimDeletedListForTest(false); <-- Without the code that fixes the loop. \ No newline at end of file
diff --git a/net/data/cache_tests/list_loop2/data_0 b/net/data/cache_tests/list_loop2/data_0
new file mode 100644
index 0000000..90c58da
--- /dev/null
+++ b/net/data/cache_tests/list_loop2/data_0
Binary files differ
diff --git a/net/data/cache_tests/list_loop2/data_1 b/net/data/cache_tests/list_loop2/data_1
new file mode 100644
index 0000000..5579786
--- /dev/null
+++ b/net/data/cache_tests/list_loop2/data_1
Binary files differ
diff --git a/net/data/cache_tests/list_loop2/data_2 b/net/data/cache_tests/list_loop2/data_2
new file mode 100644
index 0000000..c7e2eb9
--- /dev/null
+++ b/net/data/cache_tests/list_loop2/data_2
Binary files differ
diff --git a/net/data/cache_tests/list_loop2/data_3 b/net/data/cache_tests/list_loop2/data_3
new file mode 100644
index 0000000..5eec973
--- /dev/null
+++ b/net/data/cache_tests/list_loop2/data_3
Binary files differ
diff --git a/net/data/cache_tests/list_loop2/index b/net/data/cache_tests/list_loop2/index
new file mode 100644
index 0000000..b5b1dd6
--- /dev/null
+++ b/net/data/cache_tests/list_loop2/index
Binary files differ
diff --git a/net/data/cache_tests/list_loop3/contents.txt b/net/data/cache_tests/list_loop3/contents.txt
new file mode 100644
index 0000000..f359067
--- /dev/null
+++ b/net/data/cache_tests/list_loop3/contents.txt
@@ -0,0 +1,265 @@
+Index file:
+magic: c103cac3
+version: 2.0
+entries: 5
+total bytes: 66
+last file number: 0
+current id: 1
+table length: 65536
+last crash: 1
+experiment: 0
+head 0: 0x90000004
+tail 0: 0x90000000
+size 0: 0x0
+head 1: 0x0
+tail 1: 0x0
+size 1: 0x0
+head 2: 0x0
+tail 2: 0x0
+size 2: 0x0
+head 3: 0x0
+tail 3: 0x0
+size 3: 0x0
+head 4: 0x0
+tail 4: 0x0
+size 4: 0x0
+transaction: 0x0
+operation: 0
+operation list: 0
+-------------------------
+
+Block file: data_0
+magic: c104cac3
+version: 2.0
+file id: 0
+next file id: 0
+entry size: 36
+current entries: 5
+max entries: 1024
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 1
+empty sz 4: 254
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_1
+magic: c104cac3
+version: 2.0
+file id: 1
+next file id: 0
+entry size: 256
+current entries: 6
+max entries: 1024
+updating: 0
+empty sz 1: 1
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 254
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_2
+magic: c104cac3
+version: 2.0
+file id: 2
+next file id: 0
+entry size: 1024
+current entries: 0
+max entries: 0
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 0
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Block file: data_3
+magic: c104cac3
+version: 2.0
+file id: 3
+next file id: 0
+entry size: 4096
+current entries: 0
+max entries: 0
+updating: 0
+empty sz 1: 0
+empty sz 2: 0
+empty sz 3: 0
+empty sz 4: 0
+user 0: 0x0
+user 1: 0x0
+user 2: 0x0
+user 3: 0x0
+-------------------------
+
+Entry at 0xa0010002
+hash: 0xc24ac438
+next entry: 0xa0010003
+rankings: 0x90000000
+key length: 13
+key: "The first key"
+key addr: 0x0
+reuse count: 0
+refetch count: 0
+state: 0
+data size 0: 0
+data addr 0: 0x0
+data size 1: 0
+data addr 1: 0x0
+data size 2: 0
+data addr 2: 0x0
+data size 3: 0
+data addr 3: 0x0
+----------
+
+Rankings at 0x90000000
+next: 0x90000000
+prev: 0x90000001
+entry: 0xa0010002
+dirty: 0
+pointer: 0x0
+----------
+
+Entry at 0xa0010003
+hash: 0xb16af282
+next entry: 0xa0010004
+rankings: 0x90000001
+key length: 14
+key: "The Second key"
+key addr: 0x0
+reuse count: 0
+refetch count: 0
+state: 0
+data size 0: 0
+data addr 0: 0x0
+data size 1: 0
+data addr 1: 0x0
+data size 2: 0
+data addr 2: 0x0
+data size 3: 0
+data addr 3: 0x0
+----------
+
+Rankings at 0x90000001
+next: 0x90000000
+prev: 0x90000002
+entry: 0xa0010003
+dirty: 0
+pointer: 0x0
+----------
+
+Entry at 0xa0010004
+hash: 0x90efd732
+next entry: 0xa0010005
+rankings: 0x90000002
+key length: 13
+key: "The third key"
+key addr: 0x0
+reuse count: 0
+refetch count: 0
+state: 0
+data size 0: 0
+data addr 0: 0x0
+data size 1: 0
+data addr 1: 0x0
+data size 2: 0
+data addr 2: 0x0
+data size 3: 0
+data addr 3: 0x0
+----------
+
+Rankings at 0x90000002
+next: 0x90000001
+prev: 0x90000003
+entry: 0xa0010004
+dirty: 0
+pointer: 0x0
+----------
+
+Entry at 0xa0010005
+hash: 0x147cc398
+next entry: 0xa0010006
+rankings: 0x90000003
+key length: 13
+key: "The Fouth key"
+key addr: 0x0
+reuse count: 0
+refetch count: 0
+state: 0
+data size 0: 0
+data addr 0: 0x0
+data size 1: 0
+data addr 1: 0x0
+data size 2: 0
+data addr 2: 0x0
+data size 3: 0
+data addr 3: 0x0
+----------
+
+Rankings at 0x90000003
+next: 0x90000002
+prev: 0x90000004
+entry: 0xa0010005
+dirty: 0
+pointer: 0x0
+----------
+
+Entry at 0xa0010006
+hash: 0x9d910c3c
+next entry: 0xa0010002
+rankings: 0x90000004
+key length: 13
+key: "The fifth key"
+key addr: 0x0
+reuse count: 0
+refetch count: 0
+state: 0
+data size 0: 0
+data addr 0: 0x0
+data size 1: 0
+data addr 1: 0x0
+data size 2: 0
+data addr 2: 0x0
+data size 3: 0
+data addr 3: 0x0
+----------
+
+Rankings at 0x90000004
+next: 0x90000003
+prev: 0x90000004
+entry: 0xa0010006
+dirty: 1
+pointer: 0x0
+
+================================
+
+Generated with:
+
+ SetMask(0x1); // 2-entry table.
+ SetMaxSize(0x3000); // 12 kB.
+ InitCache();
+
+ disk_cache::Entry* entry;
+
+ ASSERT_EQ(net::OK, CreateEntry("The first key", &entry));
+ entry->Close();
+ ASSERT_EQ(net::OK, CreateEntry("The Second key", &entry));
+ entry->Close();
+ ASSERT_EQ(net::OK, CreateEntry("The third key", &entry));
+ entry->Close();
+ ASSERT_EQ(net::OK, CreateEntry("The Fouth key", &entry));
+ entry->Close();
+ ASSERT_EQ(net::OK, CreateEntry("The fifth key", &entry)); <---- Loop it to the first one.
+ entry->Close();
diff --git a/net/data/cache_tests/list_loop3/data_0 b/net/data/cache_tests/list_loop3/data_0
new file mode 100644
index 0000000..d6056bf
--- /dev/null
+++ b/net/data/cache_tests/list_loop3/data_0
Binary files differ
diff --git a/net/data/cache_tests/list_loop3/data_1 b/net/data/cache_tests/list_loop3/data_1
new file mode 100644
index 0000000..d41e0fa
--- /dev/null
+++ b/net/data/cache_tests/list_loop3/data_1
Binary files differ
diff --git a/net/data/cache_tests/list_loop3/data_2 b/net/data/cache_tests/list_loop3/data_2
new file mode 100644
index 0000000..c7e2eb9
--- /dev/null
+++ b/net/data/cache_tests/list_loop3/data_2
Binary files differ
diff --git a/net/data/cache_tests/list_loop3/data_3 b/net/data/cache_tests/list_loop3/data_3
new file mode 100644
index 0000000..5eec973
--- /dev/null
+++ b/net/data/cache_tests/list_loop3/data_3
Binary files differ
diff --git a/net/data/cache_tests/list_loop3/index b/net/data/cache_tests/list_loop3/index
new file mode 100644
index 0000000..5dcb654
--- /dev/null
+++ b/net/data/cache_tests/list_loop3/index
Binary files differ