Index: chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc |
diff --git a/chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc b/chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc |
index 3b64e1ded92e41a8dbeb4cdd7688a7d8653a19b5..d8ab2c762f3e80ddd8c62b52b7fd52d333022807 100644 |
--- a/chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc |
+++ b/chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc |
@@ -8,10 +8,10 @@ |
#include <string> |
#include "base/memory/scoped_ptr.h" |
-#include "base/message_loop/message_loop.h" |
#include "chrome/browser/net/gaia/gaia_oauth_consumer.h" |
#include "chrome/browser/net/gaia/gaia_oauth_fetcher.h" |
#include "chrome/test/base/testing_profile.h" |
+#include "content/public/test/test_browser_thread_bundle.h" |
#include "google_apis/gaia/gaia_constants.h" |
#include "google_apis/gaia/gaia_urls.h" |
#include "google_apis/gaia/google_service_auth_error.h" |
@@ -23,8 +23,6 @@ |
#include "testing/gtest/include/gtest/gtest.h" |
#include "url/gurl.h" |
-using ::testing::_; |
- |
class MockGaiaOAuthConsumer : public GaiaOAuthConsumer { |
public: |
MockGaiaOAuthConsumer() {} |
@@ -123,7 +121,10 @@ TEST(GaiaOAuthFetcherTest, GetOAuthToken) { |
} |
#endif // 0 // Suppressing for now |
-typedef testing::Test GaiaOAuthFetcherTest; |
+class GaiaOAuthFetcherTest : public testing::Test { |
+ private: |
+ content::TestBrowserThreadBundle thread_bundle_; |
+}; |
TEST_F(GaiaOAuthFetcherTest, OAuthGetAccessToken) { |
const std::string oauth_token = |