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

Unified Diff: chrome/common/net/gaia/oauth2_api_call_flow_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_api_call_flow_unittest.cc
===================================================================
--- chrome/common/net/gaia/oauth2_api_call_flow_unittest.cc (revision 137883)
+++ chrome/common/net/gaia/oauth2_api_call_flow_unittest.cc (working copy)
@@ -34,6 +34,7 @@
using testing::Return;
namespace {
+
static std::string CreateBody() {
return "some body";
}
@@ -49,8 +50,6 @@
return scopes;
}
-} // namespace
-
class MockUrlFetcherFactory : public ScopedURLFetcherFactory,
public URLFetcherFactory {
public:
@@ -103,6 +102,8 @@
MOCK_METHOD0(CreateAccessTokenFetcher, OAuth2AccessTokenFetcher* ());
};
+} // namespace
+
class OAuth2ApiCallFlowTest : public testing::Test {
public:
OAuth2ApiCallFlowTest() {}

Powered by Google App Engine
This is Rietveld 408576698