| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CHROMEOS_LOGIN_MOCK_URL_FETCHERS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_URL_FETCHERS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_URL_FETCHERS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_URL_FETCHERS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> |
| 10 |
| 9 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 10 #include "chrome/browser/browser_thread.h" | |
| 11 #include "chrome/common/net/url_fetcher.h" | 12 #include "chrome/common/net/url_fetcher.h" |
| 12 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 13 #include "net/url_request/url_request_status.h" | 14 #include "net/url_request/url_request_status.h" |
| 14 | 15 |
| 15 namespace chromeos { | 16 namespace chromeos { |
| 16 | 17 |
| 17 // Simulates a URL fetch by posting a delayed task. This fetch expects to be | 18 // Simulates a URL fetch by posting a delayed task. This fetch expects to be |
| 18 // canceled, and fails the test if it is not | 19 // canceled, and fails the test if it is not |
| 19 class ExpectCanceledFetcher : public URLFetcher { | 20 class ExpectCanceledFetcher : public URLFetcher { |
| 20 public: | 21 public: |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 100 |
| 100 private: | 101 private: |
| 101 GURL url_; | 102 GURL url_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(HostedFetcher); | 104 DISALLOW_COPY_AND_ASSIGN(HostedFetcher); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace chromeos | 107 } // namespace chromeos |
| 107 | 108 |
| 108 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_URL_FETCHERS_H_ | 109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_URL_FETCHERS_H_ |
| OLD | NEW |