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

Unified Diff: net/filter/mock_filter_context.cc

Issue 2478703004: Remove net::Filter code (Closed)
Patch Set: Address Matt's comment Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/filter/mock_filter_context.h ('k') | net/filter/sdch_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/filter/mock_filter_context.cc
diff --git a/net/filter/mock_filter_context.cc b/net/filter/mock_filter_context.cc
deleted file mode 100644
index c31140dfc1e30445b4163df0d21bed69eff03360..0000000000000000000000000000000000000000
--- a/net/filter/mock_filter_context.cc
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/filter/mock_filter_context.h"
-
-#include "net/url_request/url_request_context.h"
-
-namespace net {
-
-MockFilterContext::MockFilterContext()
- : is_cached_content_(false),
- ok_to_call_get_url_(true),
- response_code_(-1),
- context_(new URLRequestContext()) {
-}
-
-MockFilterContext::~MockFilterContext() {}
-
-void MockFilterContext::NukeUnstableInterfaces() {
- context_.reset();
- ok_to_call_get_url_ = false;
- request_time_ = base::Time();
-}
-
-bool MockFilterContext::GetMimeType(std::string* mime_type) const {
- *mime_type = mime_type_;
- return true;
-}
-
-// What URL was used to access this data?
-// Return false if gurl is not present.
-bool MockFilterContext::GetURL(GURL* gurl) const {
- DCHECK(ok_to_call_get_url_);
- *gurl = gurl_;
- return true;
-}
-
-// What was this data requested from a server?
-base::Time MockFilterContext::GetRequestTime() const {
- return request_time_;
-}
-
-bool MockFilterContext::IsCachedContent() const { return is_cached_content_; }
-
-SdchManager::DictionarySet*
-MockFilterContext::SdchDictionariesAdvertised() const {
- return dictionaries_handle_.get();
-}
-
-int64_t MockFilterContext::GetByteReadCount() const {
- return 0;
-}
-
-int MockFilterContext::GetResponseCode() const { return response_code_; }
-
-const URLRequestContext* MockFilterContext::GetURLRequestContext() const {
- return context_.get();
-}
-
-const NetLogWithSource& MockFilterContext::GetNetLog() const {
- return net_log_;
-}
-
-} // namespace net
« no previous file with comments | « net/filter/mock_filter_context.h ('k') | net/filter/sdch_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698