diff options
author | Jesse Wilson <jessewilson@google.com> | 2011-05-17 16:02:01 -0700 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2011-05-17 16:39:47 -0700 |
commit | 6f778cc173cc60ec184e8ca54a16ad10cf55f2cf (patch) | |
tree | 38622dd86911b882c3d22c7a033a46efffbd0ed2 /support | |
parent | 20024ef4bbd35a0450b9f21bd2ccfef04ce13787 (diff) | |
download | libcore-6f778cc173cc60ec184e8ca54a16ad10cf55f2cf.zip libcore-6f778cc173cc60ec184e8ca54a16ad10cf55f2cf.tar.gz libcore-6f778cc173cc60ec184e8ca54a16ad10cf55f2cf.tar.bz2 |
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
Diffstat (limited to 'support')
-rw-r--r-- | support/src/test/java/tests/io/MockOs.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/src/test/java/tests/io/MockOs.java b/support/src/test/java/tests/io/MockOs.java index 6bd0cf7..46c43a7 100644 --- a/support/src/test/java/tests/io/MockOs.java +++ b/support/src/test/java/tests/io/MockOs.java @@ -66,7 +66,7 @@ public final class MockOs { public void install() { if (delegate != null) { - throw new IllegalStateException("MockOS already installed!"); + throw new IllegalStateException("MockOs already installed!"); } delegate = Libcore.os; Libcore.os = mockOs; @@ -74,7 +74,7 @@ public final class MockOs { public void uninstall() { if (delegate == null) { - throw new IllegalStateException("MockOS not installed!"); + throw new IllegalStateException("MockOs not installed!"); } Libcore.os = delegate; } |