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

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

Issue 9348022: [cros] Use mocked URLFetcher and other mocks in ExistingUserController tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move Created 8 years, 9 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
« no previous file with comments | « chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/gaia/mock_url_fetcher_factory.h
diff --git a/chrome/common/net/gaia/gaia_auth_fetcher_unittest.h b/chrome/common/net/gaia/mock_url_fetcher_factory.h
similarity index 81%
rename from chrome/common/net/gaia/gaia_auth_fetcher_unittest.h
rename to chrome/common/net/gaia/mock_url_fetcher_factory.h
index 9f6a7baeb5db904b079f3ad458364c5d8e878025..6d8873184a039103e0ad11537ddb2bb9ba237edc 100644
--- a/chrome/common/net/gaia/gaia_auth_fetcher_unittest.h
+++ b/chrome/common/net/gaia/mock_url_fetcher_factory.h
@@ -5,8 +5,8 @@
// A collection of classes that are useful when testing things that use a
// GaiaAuthFetcher.
-#ifndef CHROME_COMMON_NET_GAIA_GAIA_AUTH_FETCHER_UNITTEST_H_
-#define CHROME_COMMON_NET_GAIA_GAIA_AUTH_FETCHER_UNITTEST_H_
+#ifndef CHROME_COMMON_NET_GAIA_MOCK_URL_FETCHER_FACTORY_H_
+#define CHROME_COMMON_NET_GAIA_MOCK_URL_FETCHER_FACTORY_H_
#pragma once
#include <string>
@@ -41,14 +41,14 @@ class MockFetcher : public TestURLFetcher {
};
template<typename T>
-class MockFactory : public content::URLFetcherFactory,
- public ScopedURLFetcherFactory {
+class MockURLFetcherFactory : public content::URLFetcherFactory,
+ public ScopedURLFetcherFactory {
public:
- MockFactory()
+ MockURLFetcherFactory()
: ScopedURLFetcherFactory(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
success_(true) {
}
- ~MockFactory() {}
+ ~MockURLFetcherFactory() {}
content::URLFetcher* CreateURLFetcher(
int id,
const GURL& url,
@@ -65,7 +65,7 @@ class MockFactory : public content::URLFetcherFactory,
private:
bool success_;
std::string results_;
- DISALLOW_COPY_AND_ASSIGN(MockFactory);
+ DISALLOW_COPY_AND_ASSIGN(MockURLFetcherFactory);
};
-#endif // CHROME_COMMON_NET_GAIA_GAIA_AUTH_FETCHER_UNITTEST_H_
+#endif // CHROME_COMMON_NET_GAIA_MOCK_URL_FETCHER_FACTORY_H_
« no previous file with comments | « chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698