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

Side by Side Diff: webkit/appcache/appcache_request_handler_unittest.cc

Issue 2910007: Report an error message when an update job results in an error. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | « webkit/appcache/appcache_interfaces.h ('k') | webkit/appcache/appcache_update_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/thread.h" 6 #include "base/thread.h"
7 #include "base/waitable_event.h" 7 #include "base/waitable_event.h"
8 #include "net/base/net_errors.h" 8 #include "net/base/net_errors.h"
9 #include "net/url_request/url_request.h" 9 #include "net/url_request/url_request.h"
10 #include "net/url_request/url_request_error_job.h" 10 #include "net/url_request/url_request_error_job.h"
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 virtual void OnCacheSelected(int host_id, int64 cache_id , 26 virtual void OnCacheSelected(int host_id, int64 cache_id ,
27 appcache::Status status) {} 27 appcache::Status status) {}
28 28
29 virtual void OnStatusChanged(const std::vector<int>& host_ids, 29 virtual void OnStatusChanged(const std::vector<int>& host_ids,
30 appcache::Status status) {} 30 appcache::Status status) {}
31 31
32 virtual void OnEventRaised(const std::vector<int>& host_ids, 32 virtual void OnEventRaised(const std::vector<int>& host_ids,
33 appcache::EventID event_id) {} 33 appcache::EventID event_id) {}
34 34
35 virtual void OnErrorEventRaised(const std::vector<int>& host_ids,
36 const std::string& message) {}
37
35 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, 38 virtual void OnProgressEventRaised(const std::vector<int>& host_ids,
36 const GURL& url, 39 const GURL& url,
37 int num_total, int num_complete) {} 40 int num_total, int num_complete) {}
38 41
39 virtual void OnLogMessage(int host_id, appcache::LogLevel log_level, 42 virtual void OnLogMessage(int host_id, appcache::LogLevel log_level,
40 const std::string& message) {} 43 const std::string& message) {}
41 44
42 virtual void OnContentBlocked(int host_id, const GURL& manifest_url) {} 45 virtual void OnContentBlocked(int host_id, const GURL& manifest_url) {}
43 }; 46 };
44 47
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 729
727 TEST_F(AppCacheRequestHandlerTest, WorkerRequest) { 730 TEST_F(AppCacheRequestHandlerTest, WorkerRequest) {
728 RunTestOnIOThread(&AppCacheRequestHandlerTest::WorkerRequest); 731 RunTestOnIOThread(&AppCacheRequestHandlerTest::WorkerRequest);
729 } 732 }
730 733
731 } // namespace appcache 734 } // namespace appcache
732 735
733 // AppCacheRequestHandlerTest is expected to always live longer than the 736 // AppCacheRequestHandlerTest is expected to always live longer than the
734 // runnable methods. This lets us call NewRunnableMethod on its instances. 737 // runnable methods. This lets us call NewRunnableMethod on its instances.
735 DISABLE_RUNNABLE_METHOD_REFCOUNT(appcache::AppCacheRequestHandlerTest); 738 DISABLE_RUNNABLE_METHOD_REFCOUNT(appcache::AppCacheRequestHandlerTest);
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_interfaces.h ('k') | webkit/appcache/appcache_update_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698