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

Unified Diff: chrome/common/net/gaia/oauth2_access_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
« no previous file with comments | « no previous file | chrome/common/net/gaia/oauth2_api_call_flow_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/gaia/oauth2_access_token_fetcher_unittest.cc
===================================================================
--- chrome/common/net/gaia/oauth2_access_token_fetcher_unittest.cc (revision 137883)
+++ chrome/common/net/gaia/oauth2_access_token_fetcher_unittest.cc (working copy)
@@ -35,6 +35,7 @@
using testing::Return;
namespace {
+
typedef std::vector<std::string> ScopeList;
static const char kValidTokenResponse[] =
@@ -48,7 +49,6 @@
" \"expires_in\": 3600,"
" \"token_type\": \"Bearer\""
"}";
-}
class MockUrlFetcherFactory : public ScopedURLFetcherFactory,
public URLFetcherFactory {
@@ -76,6 +76,8 @@
void(const GoogleServiceAuthError& error));
};
+} // namespace
+
class OAuth2AccessTokenFetcherTest : public testing::Test {
public:
OAuth2AccessTokenFetcherTest()
« no previous file with comments | « no previous file | chrome/common/net/gaia/oauth2_api_call_flow_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698