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

Side by Side Diff: net/data/cache_tests/dirty_entry/contents.txt

Issue 57024: Disk Cache: Make sure that an entry that pretends to be... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/data/cache_tests/dirty_entry/data_0 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ native
OLDNEW
(Empty)
1 Index header:
2 num_entries: 2
3 num_bytes: 27
4 this_id: 1
5 table_len: 64k
6
7 head: 0x90000001
8 tail: 0x90000000
9
10 Address: 0xa0010002
11 Address: 0xa0010003
12
13 -------------------------------
14
15 entry:
16 Address: 0xa0010002
17 hash: 0x687d1422
18 next: 0
19 rankings_node: 0x90000000
20 key_len: 13
21 long_key: 0
22 data_size: 0's
23 data_addr: 0's
24 key: "the first key"
25
26 rankings:
27 Address: 0x90000000
28 next: 0x90000000
29 prev: 0x90000001
30 contents: 0xa0010002
31 dirty: 0
32 pointer: 0
33
34 -------------------------------
35
36 entry:
37 Address: 0xa0010003
38 hash: 0x63909ecb
39 next: 0
40 rankings_node: 0x90000001
41 key_len: 14
42 long_key: 0
43 data_size: 0's
44 data_addr: 0's
45 key: "some other key"
46
47 rankings:
48 Address: 0x90000001
49 next: 0x90000000
50 prev: 0x90000001
51 contents: 0xa0010003
52 dirty: 0
53 pointer: 0x0169dc48 <- Invalid.
54
55 ================================
56
57 Generated with:
58
59 disk_cache::Entry *entry;
60 ASSERT_TRUE(cache_->CreateEntry("the first key", &entry));
61 entry->Close();
62
63 ASSERT_TRUE(cache_->CreateEntry("some other key", &entry));
64 entry->Close(); <---- Edit value*
65
66 * Edit the value with the debugger before it is saved to disk (break on
67 the destructor of EntryImpl and skip the line that clears "pointer")
OLDNEW
« no previous file with comments | « no previous file | net/data/cache_tests/dirty_entry/data_0 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698