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

Unified Diff: chrome/common/net/gaia/gaia_authenticator2_unittest.h

Issue 2847080: Make login cancel logic load localaccount file before attempting offline login (Closed)
Patch Set: fix check_deps failure, comment per phajdan Created 10 years, 5 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/common/net/gaia/gaia_authenticator2_unittest.h
diff --git a/chrome/common/net/gaia/gaia_authenticator2_unittest.h b/chrome/common/net/gaia/gaia_authenticator2_unittest.h
index 85d2507bbd45e6377eda8a80d3d2daa703a14ba5..d1dae2b57012e52b2a712e6b7e980be332d8420b 100644
--- a/chrome/common/net/gaia/gaia_authenticator2_unittest.h
+++ b/chrome/common/net/gaia/gaia_authenticator2_unittest.h
@@ -50,6 +50,7 @@ class MockFetcher : public URLFetcher {
DISALLOW_COPY_AND_ASSIGN(MockFetcher);
};
+template<typename T>
class MockFactory : public URLFetcher::Factory {
public:
MockFactory()
@@ -59,7 +60,7 @@ class MockFactory : public URLFetcher::Factory {
const GURL& url,
URLFetcher::RequestType request_type,
URLFetcher::Delegate* d) {
- return new MockFetcher(success_, url, request_type, d);
+ return new T(success_, url, request_type, d);
}
void set_success(bool success) {
success_ = success;

Powered by Google App Engine
This is Rietveld 408576698