| 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;
|
|
|