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

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

Issue 164933002: Expose details for appcache error events [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-up Created 6 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stack> 5 #include <stack>
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 26 matching lines...) Expand all
37 virtual void OnCacheSelected( 37 virtual void OnCacheSelected(
38 int host_id, const appcache::AppCacheInfo& info) OVERRIDE {} 38 int host_id, const appcache::AppCacheInfo& info) OVERRIDE {}
39 39
40 virtual void OnStatusChanged(const std::vector<int>& host_ids, 40 virtual void OnStatusChanged(const std::vector<int>& host_ids,
41 appcache::Status status) OVERRIDE {} 41 appcache::Status status) OVERRIDE {}
42 42
43 virtual void OnEventRaised(const std::vector<int>& host_ids, 43 virtual void OnEventRaised(const std::vector<int>& host_ids,
44 appcache::EventID event_id) OVERRIDE {} 44 appcache::EventID event_id) OVERRIDE {}
45 45
46 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, 46 virtual void OnErrorEventRaised(const std::vector<int>& host_ids,
47 const std::string& message) OVERRIDE {} 47 const std::string& message,
48 const std::string& reason,
49 const GURL& url,
50 int status) OVERRIDE {}
48 51
49 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, 52 virtual void OnProgressEventRaised(const std::vector<int>& host_ids,
50 const GURL& url, 53 const GURL& url,
51 int num_total, 54 int num_total,
52 int num_complete) OVERRIDE { 55 int num_complete) OVERRIDE {
53 } 56 }
54 57
55 virtual void OnLogMessage(int host_id, 58 virtual void OnLogMessage(int host_id,
56 appcache::LogLevel log_level, 59 appcache::LogLevel log_level,
57 const std::string& message) OVERRIDE { 60 const std::string& message) OVERRIDE {
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 967
965 TEST_F(AppCacheRequestHandlerTest, WorkerRequest) { 968 TEST_F(AppCacheRequestHandlerTest, WorkerRequest) {
966 RunTestOnIOThread(&AppCacheRequestHandlerTest::WorkerRequest); 969 RunTestOnIOThread(&AppCacheRequestHandlerTest::WorkerRequest);
967 } 970 }
968 971
969 TEST_F(AppCacheRequestHandlerTest, MainResource_Blocked) { 972 TEST_F(AppCacheRequestHandlerTest, MainResource_Blocked) {
970 RunTestOnIOThread(&AppCacheRequestHandlerTest::MainResource_Blocked); 973 RunTestOnIOThread(&AppCacheRequestHandlerTest::MainResource_Blocked);
971 } 974 }
972 975
973 } // namespace appcache 976 } // namespace appcache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698