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

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

Issue 164933002: Expose details for appcache error events [Chromium] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge glitch, complete a rename Created 6 years, 8 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "net/url_request/url_request.h" 9 #include "net/url_request/url_request.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 appcache::Status status) OVERRIDE { 53 appcache::Status status) OVERRIDE {
54 last_status_changed_ = status; 54 last_status_changed_ = status;
55 } 55 }
56 56
57 virtual void OnEventRaised(const std::vector<int>& host_ids, 57 virtual void OnEventRaised(const std::vector<int>& host_ids,
58 appcache::EventID event_id) OVERRIDE { 58 appcache::EventID event_id) OVERRIDE {
59 last_event_id_ = event_id; 59 last_event_id_ = event_id;
60 } 60 }
61 61
62 virtual void OnErrorEventRaised(const std::vector<int>& host_ids, 62 virtual void OnErrorEventRaised(const std::vector<int>& host_ids,
63 const std::string& message) OVERRIDE { 63 const appcache::ErrorDetails& details)
64 OVERRIDE {
64 last_event_id_ = ERROR_EVENT; 65 last_event_id_ = ERROR_EVENT;
65 } 66 }
66 67
67 virtual void OnProgressEventRaised(const std::vector<int>& host_ids, 68 virtual void OnProgressEventRaised(const std::vector<int>& host_ids,
68 const GURL& url, 69 const GURL& url,
69 int num_total, 70 int num_total,
70 int num_complete) OVERRIDE { 71 int num_complete) OVERRIDE {
71 last_event_id_ = PROGRESS_EVENT; 72 last_event_id_ = PROGRESS_EVENT;
72 } 73 }
73 74
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 EXPECT_EQ(&mock_frontend_, host.frontend()); 531 EXPECT_EQ(&mock_frontend_, host.frontend());
531 EXPECT_EQ(NULL, host.associated_cache()); 532 EXPECT_EQ(NULL, host.associated_cache());
532 EXPECT_FALSE(host.is_selection_pending()); 533 EXPECT_FALSE(host.is_selection_pending());
533 EXPECT_TRUE(host.preferred_manifest_url().is_empty()); 534 EXPECT_TRUE(host.preferred_manifest_url().is_empty());
534 } 535 }
535 EXPECT_EQ(0, mock_quota_proxy->GetInUseCount(kDocAndOriginUrl)); 536 EXPECT_EQ(0, mock_quota_proxy->GetInUseCount(kDocAndOriginUrl));
536 service_.set_quota_manager_proxy(NULL); 537 service_.set_quota_manager_proxy(NULL);
537 } 538 }
538 539
539 } // namespace appcache 540 } // namespace appcache
OLDNEW
« no previous file with comments | « webkit/browser/appcache/appcache_host.cc ('k') | webkit/browser/appcache/appcache_request_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698