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

Unified Diff: chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc

Issue 7465041: GTTF: Use a fresh TestingBrowserProcess for each test, part #4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 9 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
« no previous file with comments | « chrome/browser/instant/promo_counter_unittest.cc ('k') | chrome/browser/net/gaia/token_service_unittest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 89fb6501f0033c65393ed03de1e44d864623afc0..cb0577ce4f38d76161cdd2705d425516e7b59a9a 100644
--- a/chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc
+++ b/chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc
@@ -16,6 +16,7 @@
#include "chrome/common/net/gaia/google_service_auth_error.h"
#include "chrome/common/net/http_return.h"
#include "chrome/test/base/testing_profile.h"
+#include "chrome/test/testing_browser_process_test.h"
#include "content/common/notification_service.h"
#include "content/common/url_fetcher.h"
#include "content/test/test_url_fetcher_factory.h"
@@ -142,8 +143,9 @@ TEST(GaiaOAuthFetcherTest, GetOAuthToken) {
}
#endif // 0 // Suppressing for now
+typedef TestingBrowserProcessTest GaiaOAuthFetcherTest;
-TEST(GaiaOAuthFetcherTest, OAuthGetAccessToken) {
+TEST_F(GaiaOAuthFetcherTest, OAuthGetAccessToken) {
const std::string oauth_token="1/OAuth1-Access_Token-1234567890abcdefghijklm";
const std::string oauth_token_secret="Dont_tell_the_secret-123";
const std::string data("oauth_token="
@@ -175,7 +177,7 @@ TEST(GaiaOAuthFetcherTest, OAuthGetAccessToken) {
data);
}
-TEST(GaiaOAuthFetcherTest, OAuthWrapBridge) {
+TEST_F(GaiaOAuthFetcherTest, OAuthWrapBridge) {
const std::string wrap_token="1/OAuth2-Access_Token-nopqrstuvwxyz1234567890";
const std::string expires_in="3600";
@@ -205,7 +207,7 @@ TEST(GaiaOAuthFetcherTest, OAuthWrapBridge) {
data);
}
-TEST(GaiaOAuthFetcherTest, UserInfo) {
+TEST_F(GaiaOAuthFetcherTest, UserInfo) {
const std::string email_address="someone@somewhere.net";
const std::string wrap_token="1/OAuth2-Access_Token-nopqrstuvwxyz1234567890";
const std::string expires_in="3600";
« no previous file with comments | « chrome/browser/instant/promo_counter_unittest.cc ('k') | chrome/browser/net/gaia/token_service_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698