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

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

Issue 1393193005: Implement $Secure- cookie prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add another test Created 5 years, 2 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
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 "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 } 609 }
610 610
611 return allow; 611 return allow;
612 } 612 }
613 613
614 bool TestNetworkDelegate::OnCanAccessFile(const URLRequest& request, 614 bool TestNetworkDelegate::OnCanAccessFile(const URLRequest& request,
615 const base::FilePath& path) const { 615 const base::FilePath& path) const {
616 return can_access_files_; 616 return can_access_files_;
617 } 617 }
618 618
619 bool TestNetworkDelegate::OnFirstPartyOnlyCookieExperimentEnabled() const { 619 bool TestNetworkDelegate::OnExperimentalFeaturesEnabled() const {
620 return first_party_only_cookies_enabled_; 620 return first_party_only_cookies_enabled_;
Mike West 2015/10/09 15:54:32 Nit: Should probably rename this as well.
estark 2015/10/10 05:04:02 Done, in https://codereview.chromium.org/139285300
621 } 621 }
622 622
623 bool TestNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( 623 bool TestNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
624 const URLRequest& request, 624 const URLRequest& request,
625 const GURL& target_url, 625 const GURL& target_url,
626 const GURL& referrer_url) const { 626 const GURL& referrer_url) const {
627 return cancel_request_with_policy_violating_referrer_; 627 return cancel_request_with_policy_violating_referrer_;
628 } 628 }
629 629
630 TestJobInterceptor::TestJobInterceptor() : main_intercept_job_(NULL) { 630 TestJobInterceptor::TestJobInterceptor() : main_intercept_job_(NULL) {
631 } 631 }
632 632
633 URLRequestJob* TestJobInterceptor::MaybeCreateJob( 633 URLRequestJob* TestJobInterceptor::MaybeCreateJob(
634 URLRequest* request, 634 URLRequest* request,
635 NetworkDelegate* network_delegate) const { 635 NetworkDelegate* network_delegate) const {
636 URLRequestJob* job = main_intercept_job_; 636 URLRequestJob* job = main_intercept_job_;
637 main_intercept_job_ = NULL; 637 main_intercept_job_ = NULL;
638 return job; 638 return job;
639 } 639 }
640 640
641 void TestJobInterceptor::set_main_intercept_job(URLRequestJob* job) { 641 void TestJobInterceptor::set_main_intercept_job(URLRequestJob* job) {
642 main_intercept_job_ = job; 642 main_intercept_job_ = job;
643 } 643 }
644 644
645 } // namespace net 645 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698