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 <memory> | 5 #include <memory> |
6 #include <utility> | 6 #include <utility> |
7 | 7 |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 6550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6561 const std::string& type, | 6561 const std::string& type, |
6562 std::unique_ptr<const base::Value> body) override { | 6562 std::unique_ptr<const base::Value> body) override { |
6563 NOTIMPLEMENTED(); | 6563 NOTIMPLEMENTED(); |
6564 } | 6564 } |
6565 | 6565 |
6566 void ProcessHeader(const GURL& url, | 6566 void ProcessHeader(const GURL& url, |
6567 const std::string& header_value) override { | 6567 const std::string& header_value) override { |
6568 headers_.push_back({url, header_value}); | 6568 headers_.push_back({url, header_value}); |
6569 } | 6569 } |
6570 | 6570 |
| 6571 void RemoveBrowsingData( |
| 6572 int data_type_mask, |
| 6573 base::Callback<bool(const GURL&)> origin_filter) override { |
| 6574 NOTIMPLEMENTED(); |
| 6575 } |
| 6576 |
6571 private: | 6577 private: |
6572 std::vector<Header> headers_; | 6578 std::vector<Header> headers_; |
6573 }; | 6579 }; |
6574 | 6580 |
6575 std::unique_ptr<test_server::HttpResponse> SendReportToHeader( | 6581 std::unique_ptr<test_server::HttpResponse> SendReportToHeader( |
6576 const test_server::HttpRequest& request) { | 6582 const test_server::HttpRequest& request) { |
6577 std::unique_ptr<test_server::BasicHttpResponse> http_response( | 6583 std::unique_ptr<test_server::BasicHttpResponse> http_response( |
6578 new test_server::BasicHttpResponse); | 6584 new test_server::BasicHttpResponse); |
6579 http_response->set_code(HTTP_OK); | 6585 http_response->set_code(HTTP_OK); |
6580 http_response->AddCustomHeader("Report-To", "foo"); | 6586 http_response->AddCustomHeader("Report-To", "foo"); |
(...skipping 4347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10928 AddTestInterceptor()->set_main_intercept_job(std::move(job)); | 10934 AddTestInterceptor()->set_main_intercept_job(std::move(job)); |
10929 | 10935 |
10930 req->Start(); | 10936 req->Start(); |
10931 req->Cancel(); | 10937 req->Cancel(); |
10932 base::RunLoop().RunUntilIdle(); | 10938 base::RunLoop().RunUntilIdle(); |
10933 EXPECT_EQ(ERR_ABORTED, d.request_status()); | 10939 EXPECT_EQ(ERR_ABORTED, d.request_status()); |
10934 EXPECT_EQ(0, d.received_redirect_count()); | 10940 EXPECT_EQ(0, d.received_redirect_count()); |
10935 } | 10941 } |
10936 | 10942 |
10937 } // namespace net | 10943 } // namespace net |
OLD | NEW |