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

Side by Side Diff: net/url_request/url_request_test_util.cc

Issue 2786583002: chromeos: Check both original and absolute paths for file: scheme (Closed)
Patch Set: remove dcheck Created 3 years, 6 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
« no previous file with comments | « net/url_request/url_request_test_util.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
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
OLDNEW
« no previous file with comments | « net/url_request/url_request_test_util.h ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698