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 "components/captive_portal/captive_portal_detector.h" | 5 #include "components/captive_portal/captive_portal_detector.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "components/captive_portal/captive_portal_testing_utils.h" | 14 #include "components/captive_portal/captive_portal_testing_utils.h" |
15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
16 #include "net/url_request/url_request_test_util.h" | 16 #include "net/url_request/url_request_test_util.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 202 |
203 TEST_F(CaptivePortalDetectorTest, Cancel) { | 203 TEST_F(CaptivePortalDetectorTest, Cancel) { |
204 RunCancelTest(); | 204 RunCancelTest(); |
205 CaptivePortalDetector::Results results; | 205 CaptivePortalDetector::Results results; |
206 results.result = captive_portal::RESULT_INTERNET_CONNECTED; | 206 results.result = captive_portal::RESULT_INTERNET_CONNECTED; |
207 results.response_code = 204; | 207 results.response_code = 204; |
208 RunTest(results, net::OK, 204, NULL); | 208 RunTest(results, net::OK, 204, NULL); |
209 } | 209 } |
210 | 210 |
211 } // namespace captive_portal | 211 } // namespace captive_portal |
OLD | NEW |