| 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 "chrome/browser/captive_portal/testing_utils.h" | 5 #include "components/captive_portal/captive_portal_testing_utils.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
| 10 #include "net/http/http_response_headers.h" | 10 #include "net/http/http_response_headers.h" |
| 11 #include "net/http/http_util.h" | 11 #include "net/http/http_util.h" |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 scoped_refptr<net::HttpResponseHeaders> CreateResponseHeaders( | 15 scoped_refptr<net::HttpResponseHeaders> CreateResponseHeaders( |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 scoped_refptr<net::HttpResponseHeaders> headers( | 57 scoped_refptr<net::HttpResponseHeaders> headers( |
| 58 CreateResponseHeaders(response_headers)); | 58 CreateResponseHeaders(response_headers)); |
| 59 DCHECK_EQ(status_code, headers->response_code()); | 59 DCHECK_EQ(status_code, headers->response_code()); |
| 60 fetcher()->set_response_headers(headers); | 60 fetcher()->set_response_headers(headers); |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 detector()->OnURLFetchComplete(fetcher()); | 63 detector()->OnURLFetchComplete(fetcher()); |
| 64 } | 64 } |
| 65 | 65 |
| 66 } // namespace captive_portal | 66 } // namespace captive_portal |
| OLD | NEW |