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

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

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 #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 { 18 namespace captive_portal {
19
19 class URLFetcher; 20 class URLFetcher;
mmenke 2014/04/21 14:32:43 There isn't a captive_portal::URLFetcher class...
stevenjb 2014/04/21 16:42:27 Done.
20 }
21
22 namespace captive_portal {
23 21
24 class CaptivePortalDetectorTestBase { 22 class CaptivePortalDetectorTestBase {
25 public: 23 public:
26 CaptivePortalDetectorTestBase(); 24 CaptivePortalDetectorTestBase();
27 virtual ~CaptivePortalDetectorTestBase(); 25 virtual ~CaptivePortalDetectorTestBase();
28 26
29 // Sets test time for captive portal detector. 27 // Sets test time for captive portal detector.
30 void SetTime(const base::Time& time); 28 void SetTime(const base::Time& time);
31 29
32 // Advances test time for captive portal detector. 30 // Advances test time for captive portal detector.
(...skipping 15 matching lines...) Expand all
48 protected: 46 protected:
49 CaptivePortalDetector* detector_; 47 CaptivePortalDetector* detector_;
50 48
51 net::TestURLFetcherFactory factory_; 49 net::TestURLFetcherFactory factory_;
52 50
53 DISALLOW_COPY_AND_ASSIGN(CaptivePortalDetectorTestBase); 51 DISALLOW_COPY_AND_ASSIGN(CaptivePortalDetectorTestBase);
54 }; 52 };
55 53
56 } // namespace captive_portal 54 } // namespace captive_portal
57 55
58 #endif // CHROME_BROWSER_CAPTIVE_PORTAL_TESTING_UTILS_H_ 56 #endif // COMPONENTS_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TESTING_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698