History log of /libcore/support/src/test/java/tests/io/MockOs.java
Revision Date Author Comments
9b510df35b57946d843ffc34cf23fdcfc84c5220 28-May-2011 Elliott Hughes <enh@google.com> Make ErrnoException a checked exception.

Bug: 4486011
Change-Id: I1877ce593d441653f75ab14884aa2d85f52652ad
e5eb80e6adaab18ff7372adcd09f9e1af3a76871 19-May-2011 Jesse Wilson <jessewilson@google.com> Make the HttpResponseCache robust to file I/O errors.

If the filesystem fails, cache performance degrades. Ongoing
writes should not see any filesystem errors: don't punish the
writer who isn't benefitting from the cache. Ongoing reads may
see IOExceptions while streaming files. In practice this will
only happen if the directory disappears during use, as is the
case when a removable partition is removed.

Change-Id: Ibf4d51998d9beaba9f8c86c449fd5c97ca869cee
http://b/3180373
6f778cc173cc60ec184e8ca54a16ad10cf55f2cf 18-May-2011 Jesse Wilson <jessewilson@google.com> Cache HTTP responses with a Vary header.

This requires a backdoor for the cache to read the request headers
at put time. This is implemented by getting the HttpEngine, which
will allow us to eventually share the response header parsing.

Change-Id: I177467244e5af0a3dda07883cd58d641bf75362f
http://b/3180373
e342455abc6b650f847d931728223411e58831ce 17-May-2011 Jesse Wilson <jessewilson@google.com> Test DiskLruCache with fault injection.

This tests what happens when the filesystem fails while reading or
writing the cached files. I still need to test what happens when
there are failures reading or writing the journal.

Change-Id: I48018514ef5b8cc206efc905b1823eb49589c8e8
http://b/3180373