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

Side by Side Diff: chrome/browser/chromeos/login/mock_url_fetchers.h

Issue 5676004: Cleanup: Remove unneeded browser_thread.h usage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix deps Created 10 years 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) 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698