20 -------------------------------
26 rankings_node: 0x90000004
30 data_addr[0]: 0xa0010008
41 -------------------------------
47 rankings_node: 0x90000001
51 data_addr[0]: 0xa0010004
62 -------------------------------
68 rankings_node: 0x90000007
83 -------------------------------
89 rankings_node: 0x90000006
104 -------------------------------
110 rankings_node: 0x90000005
125 -------------------------------
131 rankings_node: 0x90000003
146 -------------------------------
152 rankings_node: 0x90000002
161 next: 0x90000001 <--------- wrong
167 -------------------------------
173 rankings_node: 0x90000000
188 ==============================
192 disk_cache::Entry *entry;
193 ASSERT_TRUE(cache_->CreateEntry("first", &entry));
196 char buffer[] = "abcd";
197 ASSERT_TRUE(cache_->CreateEntry("second", &entry));
198 entry->WriteData(0, 0, buffer, 4, NULL, false);
201 ASSERT_TRUE(cache_->CreateEntry("third", &entry));
204 ASSERT_TRUE(cache_->CreateEntry("fourth", &entry));
207 ASSERT_TRUE(cache_->CreateEntry("fifth", &entry));
208 entry->WriteData(0, 0, buffer, 4, NULL, false);
211 ASSERT_TRUE(cache_->CreateEntry("sixth", &entry));
214 ASSERT_TRUE(cache_->CreateEntry("seventh", &entry));
217 ASSERT_TRUE(cache_->CreateEntry("eight", &entry));
220 ASSERT_TRUE(cache_->OpenEntry("second", &entry));
221 entry->ReadData(0, 0, buffer, 4, NULL); <--- fix the values*
224 ASSERT_TRUE(cache_->OpenEntry("fifth", &entry));
225 entry->ReadData(0, 0, buffer, 4, NULL);
228 * break on Rankings::Remove() and edit the values before they are saved.