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

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

Issue 2861007: AppCache: add plumbing to deliver logging messages to renderer process. These... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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_unittest.cc » ('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 18 matching lines...) Expand all
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 OnProgressEventRaised(const std::vector<int>& host_ids, 35 virtual void OnProgressEventRaised(const std::vector<int>& host_ids,
36 const GURL& url, 36 const GURL& url,
37 int num_total, int num_complete) {} 37 int num_total, int num_complete) {}
38 38
39 virtual void OnLogMessage(int host_id, appcache::LogLevel log_level,
40 const std::string& message) {}
41
39 virtual void OnContentBlocked(int host_id) {} 42 virtual void OnContentBlocked(int host_id) {}
40 }; 43 };
41 44
42 // Helper class run a test on our io_thread. The io_thread 45 // Helper class run a test on our io_thread. The io_thread
43 // is spun up once and reused for all tests. 46 // is spun up once and reused for all tests.
44 template <class Method> 47 template <class Method>
45 class WrapperTask : public Task { 48 class WrapperTask : public Task {
46 public: 49 public:
47 WrapperTask(AppCacheRequestHandlerTest* test, Method method) 50 WrapperTask(AppCacheRequestHandlerTest* test, Method method)
48 : test_(test), method_(method) { 51 : test_(test), method_(method) {
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 726
724 TEST_F(AppCacheRequestHandlerTest, WorkerRequest) { 727 TEST_F(AppCacheRequestHandlerTest, WorkerRequest) {
725 RunTestOnIOThread(&AppCacheRequestHandlerTest::WorkerRequest); 728 RunTestOnIOThread(&AppCacheRequestHandlerTest::WorkerRequest);
726 } 729 }
727 730
728 } // namespace appcache 731 } // namespace appcache
729 732
730 // AppCacheRequestHandlerTest is expected to always live longer than the 733 // AppCacheRequestHandlerTest is expected to always live longer than the
731 // runnable methods. This lets us call NewRunnableMethod on its instances. 734 // runnable methods. This lets us call NewRunnableMethod on its instances.
732 DISABLE_RUNNABLE_METHOD_REFCOUNT(appcache::AppCacheRequestHandlerTest); 735 DISABLE_RUNNABLE_METHOD_REFCOUNT(appcache::AppCacheRequestHandlerTest);
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_interfaces.h ('k') | webkit/appcache/appcache_update_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698