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

Unified Diff: chrome/common/net/gaia/oauth2_mint_token_fetcher_unittest.cc

Issue 10389220: Fix some oauth2 test code: put most code in anonymous namespace to avoid (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/oauth2_mint_token_fetcher_unittest.cc
===================================================================
--- chrome/common/net/gaia/oauth2_mint_token_fetcher_unittest.cc (revision 137883)
+++ chrome/common/net/gaia/oauth2_mint_token_fetcher_unittest.cc (working copy)
@@ -36,6 +36,7 @@
using testing::Return;
namespace {
+
static const char kValidTokenResponse[] =
"{"
" \"token\": \"at1\","
@@ -45,7 +46,6 @@
"{"
" \"issueAdvice\": \"Auto\""
"}";
-}
class MockUrlFetcherFactory : public ScopedURLFetcherFactory,
public URLFetcherFactory {
@@ -73,6 +73,8 @@
void(const GoogleServiceAuthError& error));
};
+} // namespace
+
class OAuth2MintTokenFetcherTest : public testing::Test {
public:
OAuth2MintTokenFetcherTest()
« no previous file with comments | « chrome/common/net/gaia/oauth2_api_call_flow_unittest.cc ('k') | chrome/common/net/gaia/oauth2_mint_token_flow_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698