OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "net/filter/mock_filter_context.h" | 5 #include "net/filter/mock_filter_context.h" |
6 | 6 |
7 #include "net/url_request/url_request_context.h" | 7 #include "net/url_request/url_request_context.h" |
8 | 8 |
9 namespace net { | 9 namespace net { |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 int64 MockFilterContext::GetByteReadCount() const { return 0; } | 61 int64 MockFilterContext::GetByteReadCount() const { return 0; } |
62 | 62 |
63 int MockFilterContext::GetResponseCode() const { return response_code_; } | 63 int MockFilterContext::GetResponseCode() const { return response_code_; } |
64 | 64 |
65 const URLRequestContext* MockFilterContext::GetURLRequestContext() const { | 65 const URLRequestContext* MockFilterContext::GetURLRequestContext() const { |
66 return context_.get(); | 66 return context_.get(); |
67 } | 67 } |
68 | 68 |
| 69 const BoundNetLog& MockFilterContext::GetNetLog() const { |
| 70 return net_log_; |
| 71 } |
| 72 |
69 } // namespace net | 73 } // namespace net |
OLD | NEW |