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

Unified Diff: chrome/browser/chromeos/login/mock_url_fetchers.h

Issue 3442009: [Chrome OS] Attempt offline and online login simultaneously (Closed)
Patch Set: Fix crash on data recover Created 10 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/mock_url_fetchers.h
diff --git a/chrome/browser/chromeos/login/mock_url_fetchers.h b/chrome/browser/chromeos/login/mock_url_fetchers.h
index 5abb2403fb15bdfd0894a251c7350058d4949103..47b7cf7f1e75905940afd861b1661ecc66f0fdc3 100644
--- a/chrome/browser/chromeos/login/mock_url_fetchers.h
+++ b/chrome/browser/chromeos/login/mock_url_fetchers.h
@@ -52,6 +52,40 @@ class GotCanceledFetcher : public URLFetcher {
DISALLOW_COPY_AND_ASSIGN(GotCanceledFetcher);
};
+class SuccessFetcher : public URLFetcher {
+ public:
+ SuccessFetcher(bool success,
+ const GURL& url,
+ const std::string& results,
+ URLFetcher::RequestType request_type,
+ URLFetcher::Delegate* d);
+ virtual ~SuccessFetcher();
+
+ void Start();
+
+ private:
+ GURL url_;
+
+ DISALLOW_COPY_AND_ASSIGN(SuccessFetcher);
+};
+
+class FailFetcher : public URLFetcher {
+ public:
+ FailFetcher(bool success,
+ const GURL& url,
+ const std::string& results,
+ URLFetcher::RequestType request_type,
+ URLFetcher::Delegate* d);
+ virtual ~FailFetcher();
+
+ void Start();
+
+ private:
+ GURL url_;
+
+ DISALLOW_COPY_AND_ASSIGN(FailFetcher);
+};
+
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_LOGIN_MOCK_URL_FETCHERS_H_

Powered by Google App Engine
This is Rietveld 408576698