summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Alter the relative priorities of network vs fallback namespaces in the ↵michaeln@chromium.org2010-11-191-0/+23
| | | | | | | | | | | appcache. If a resource url is in an appcache's network namespace and fallback namespace, the network namespace wins (with the exception of the special '*' network namespace which does not take priority over the fallback namespace. BUG=WK49292 TEST=unit test, also a new layout test (not landed yet) Review URL: http://codereview.chromium.org/4807001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66731 0039d316-1c4b-4281-b951-d872f2087c98
* Fix for WKBug 47000: a failure mode given bad content (in an unlikely form). ↵michaeln@chromium.org2010-11-031-0/+4
| | | | | | | | | | | | The error occurs when an html page is put in an appcache as a fallback resource (so it's listed in a fallback section), but it contains a manifest attribute that refers to a different manifest file. The system should mark the resource as foreign and exclude it from main resource loads, but it was failing to do so. The fix is to do that. BUG=WK47000 TEST=http/tests/appcache/foreign-fallback.html Review URL: http://codereview.chromium.org/3529009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64868 0039d316-1c4b-4281-b951-d872f2087c98
* Convert implicit scoped_refptr constructor calls to explicit ones, part 1thakis@chromium.org2010-11-011-3/+3
| | | | | | | | | | | This CL was created automatically by this clang rewriter: http://codereview.appspot.com/2776043/ . I manually fixed a few rough spots of the rewriter output (doh1-3) and fixed all presubmit errors. BUG=28083 TEST=None Review URL: http://codereview.chromium.org/4192012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64573 0039d316-1c4b-4281-b951-d872f2087c98
* Undo in memory changes made by an update job if the commit to disk fails. ↵michaeln@chromium.org2010-08-031-13/+35
| | | | | | | | | | Provide a more clear error message when the commit fails due to exceeding the quota. TEST=MasterEntryFailStoreNewestCacheTest BUG=50985 Review URL: http://codereview.chromium.org/2836075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54667 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache quota tracking groundwork, store response sizes in the SQL database. michaeln@chromium.org2010-01-061-2/+3
| | | | | | | | | TEST=updated existing unittests BUG=none Review URL: http://codereview.chromium.org/525060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35654 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 35609 - AppCache quota tracking groundwork, store response sizes in ↵michaeln@google.com2010-01-061-3/+2
| | | | | | | | | | | | | | the SQL database. TEST=updated existing unittests BUG=none Review URL: http://codereview.chromium.org/523046 TBR=michaeln@chromium.org Review URL: http://codereview.chromium.org/525059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35610 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache quota tracking groundwork, store response sizes in the SQL database.michaeln@chromium.org2010-01-061-2/+3
| | | | | | | | | TEST=updated existing unittests BUG=none Review URL: http://codereview.chromium.org/523046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35609 0039d316-1c4b-4281-b951-d872f2087c98
* A mind numbing change to add the notion of a persistent groupId, and to get ↵michaeln@google.com2009-11-241-1/+1
| | | | | | | | | | | | rid of the notion of an entryId. TEST=existing tests apply BUG=none Review URL: http://codereview.chromium.org/432012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32895 0039d316-1c4b-4281-b951-d872f2087c98
* Lookup appcached responses given a request URL.michaeln@google.com2009-11-121-0/+117
| | | | | | | | | TEST=new cases in mock_appcache_storage_unittest.cc and appcache_unittest.cc BUG=none Review URL: http://codereview.chromium.org/372070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31757 0039d316-1c4b-4281-b951-d872f2087c98
* applicationCache.swap(), applicationCache.update() and ↵michaeln@google.com2009-11-101-0/+3
| | | | | | | | | | | applicationCache.status scriptable API impls TEST=manual and existing unittests BUG=none Review URL: http://codereview.chromium.org/379003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31536 0039d316-1c4b-4281-b951-d872f2087c98
* AppCache StorageAPIsmichaeln@google.com2009-10-091-7/+7
| | | | | | | | | TEST=none yet, these are just API definitions stubbed out for now BUG=none Review URL: http://codereview.chromium.org/209071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28513 0039d316-1c4b-4281-b951-d872f2087c98
* Implementation of application cache update algorithm.jennb@chromium.org2009-10-061-1/+38
| | | | | | | | | | | Does not include storage nor processing of pending master entries. TEST=verify update functionality BUG=none Review URL: http://codereview.chromium.org/201070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28123 0039d316-1c4b-4281-b951-d872f2087c98
* * Fleshed out AppCacheHost class a fair amount, in particular the cache ↵michaeln@google.com2009-09-151-14/+13
| | | | | | | | | | | | | | | | selection algorithm. * Added some AppCacheHost unit tests. * Introduced AppCacheRequestHandler class, which replaces the clunkyApp CacheInterceptor::ExtraInfo struct. This impl is entirely skeletal stubs for now. TEST=appcache_unittest.cc, but really needs more BUG=none Review URL: http://codereview.chromium.org/192043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26275 0039d316-1c4b-4281-b951-d872f2087c98
* Change AppCache and AppCacheGroup to be ref counted classes.Adjusted API of ↵jennb@chromium.org2009-09-021-0/+55
framework classes accordingly.Added unittests for appcache framework classes.TEST=verify objects are cleaned up properly, verify api implBUG=none Review URL: http://codereview.chromium.org/179071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25264 0039d316-1c4b-4281-b951-d872f2087c98