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 #ifndef CHROME_BROWSER_CAPTIVE_PORTAL_TESTING_UTILS_H_ | 5 #ifndef COMPONENTS_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TESTING_UTILS_H_ |
6 #define CHROME_BROWSER_CAPTIVE_PORTAL_TESTING_UTILS_H_ | 6 #define COMPONENTS_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TESTING_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "chrome/browser/captive_portal/captive_portal_detector.h" | 11 #include "components/captive_portal/captive_portal_detector.h" |
12 #include "net/url_request/test_url_fetcher_factory.h" | 12 #include "net/url_request/test_url_fetcher_factory.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class Time; | 15 class Time; |
16 } | 16 } |
17 | 17 |
18 namespace net { | |
19 class URLFetcher; | |
20 } | |
21 | |
22 namespace captive_portal { | 18 namespace captive_portal { |
23 | 19 |
24 class CaptivePortalDetectorTestBase { | 20 class CaptivePortalDetectorTestBase { |
25 public: | 21 public: |
26 CaptivePortalDetectorTestBase(); | 22 CaptivePortalDetectorTestBase(); |
27 virtual ~CaptivePortalDetectorTestBase(); | 23 virtual ~CaptivePortalDetectorTestBase(); |
28 | 24 |
29 // Sets test time for captive portal detector. | 25 // Sets test time for captive portal detector. |
30 void SetTime(const base::Time& time); | 26 void SetTime(const base::Time& time); |
31 | 27 |
(...skipping 16 matching lines...) Expand all Loading... |
48 protected: | 44 protected: |
49 CaptivePortalDetector* detector_; | 45 CaptivePortalDetector* detector_; |
50 | 46 |
51 net::TestURLFetcherFactory factory_; | 47 net::TestURLFetcherFactory factory_; |
52 | 48 |
53 DISALLOW_COPY_AND_ASSIGN(CaptivePortalDetectorTestBase); | 49 DISALLOW_COPY_AND_ASSIGN(CaptivePortalDetectorTestBase); |
54 }; | 50 }; |
55 | 51 |
56 } // namespace captive_portal | 52 } // namespace captive_portal |
57 | 53 |
58 #endif // CHROME_BROWSER_CAPTIVE_PORTAL_TESTING_UTILS_H_ | 54 #endif // COMPONENTS_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TESTING_UTILS_H_ |
OLD | NEW |