OLD | NEW |
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 "net/url_request/url_request_test_util.h" | 5 #include "net/url_request/url_request_test_util.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 | 641 |
642 if (!allow) { | 642 if (!allow) { |
643 blocked_set_cookie_count_++; | 643 blocked_set_cookie_count_++; |
644 } else { | 644 } else { |
645 set_cookie_count_++; | 645 set_cookie_count_++; |
646 } | 646 } |
647 | 647 |
648 return allow; | 648 return allow; |
649 } | 649 } |
650 | 650 |
651 bool TestNetworkDelegate::OnCanAccessFile(const URLRequest& request, | 651 bool TestNetworkDelegate::OnCanAccessFile( |
652 const base::FilePath& path) const { | 652 const URLRequest& request, |
| 653 const base::FilePath& original_path, |
| 654 const base::FilePath& absolute_path) const { |
653 return can_access_files_; | 655 return can_access_files_; |
654 } | 656 } |
655 | 657 |
656 bool TestNetworkDelegate::OnAreExperimentalCookieFeaturesEnabled() const { | 658 bool TestNetworkDelegate::OnAreExperimentalCookieFeaturesEnabled() const { |
657 return experimental_cookie_features_enabled_; | 659 return experimental_cookie_features_enabled_; |
658 } | 660 } |
659 | 661 |
660 bool TestNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( | 662 bool TestNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( |
661 const URLRequest& request, | 663 const URLRequest& request, |
662 const GURL& target_url, | 664 const GURL& target_url, |
(...skipping 10 matching lines...) Expand all Loading... |
673 NetworkDelegate* network_delegate) const { | 675 NetworkDelegate* network_delegate) const { |
674 return main_intercept_job_.release(); | 676 return main_intercept_job_.release(); |
675 } | 677 } |
676 | 678 |
677 void TestJobInterceptor::set_main_intercept_job( | 679 void TestJobInterceptor::set_main_intercept_job( |
678 std::unique_ptr<URLRequestJob> job) { | 680 std::unique_ptr<URLRequestJob> job) { |
679 main_intercept_job_ = std::move(job); | 681 main_intercept_job_ = std::move(job); |
680 } | 682 } |
681 | 683 |
682 } // namespace net | 684 } // namespace net |
OLD | NEW |