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

Side by Side Diff: components/captive_portal/captive_portal_testing_utils.cc

Issue 242483003: Move CaptivePortalDetector to src/components/captive_portal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move CaptivePortalDetector to a component Created 6 years, 8 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 | Annotate | Revision Log
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698