diff options
Diffstat (limited to 'google_apis')
-rw-r--r-- | google_apis/gaia/gaia_switches.cc | 2 | ||||
-rw-r--r-- | google_apis/gaia/gaia_switches.h | 6 | ||||
-rw-r--r-- | google_apis/google_api_keys.cc | 11 | ||||
-rw-r--r-- | google_apis/google_api_keys_unittest.cc | 1 |
4 files changed, 10 insertions, 10 deletions
diff --git a/google_apis/gaia/gaia_switches.cc b/google_apis/gaia/gaia_switches.cc index 16228c3..46ed492 100644 --- a/google_apis/gaia/gaia_switches.cc +++ b/google_apis/gaia/gaia_switches.cc @@ -13,5 +13,7 @@ const char kLsoUrl[] = "lso-url"; const char kOAuth1LoginScope[] = "oauth1-login-scope"; const char kOAuthWrapBridgeUserInfoScope[] = "oauth-wrap-bridge-user-info-scope"; +const char kOAuth2ClientID[] = "oauth2-client-id"; +const char kOAuth2ClientSecret[] = "oauth2-client-secret"; } // namespace switches diff --git a/google_apis/gaia/gaia_switches.h b/google_apis/gaia/gaia_switches.h index 0700f36..4fbefa3 100644 --- a/google_apis/gaia/gaia_switches.h +++ b/google_apis/gaia/gaia_switches.h @@ -28,6 +28,12 @@ extern const char kOAuth1LoginScope[]; // Overrides OAuth wrap bridge user info scope. extern const char kOAuthWrapBridgeUserInfoScope[]; +// Specifies custom OAuth2 client id for testing purposes. +extern const char kOAuth2ClientID[]; + +// Specifies custom OAuth2 client secret for testing purposes. +extern const char kOAuth2ClientSecret[]; + } // namespace switches #endif // GOOGLE_APIS_GAIA_GAIA_SWITCHES_H_ diff --git a/google_apis/google_api_keys.cc b/google_apis/google_api_keys.cc index 2cf92fd..f879979 100644 --- a/google_apis/google_api_keys.cc +++ b/google_apis/google_api_keys.cc @@ -12,6 +12,7 @@ #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/strings/stringize_macros.h" +#include "google_apis/gaia/gaia_switches.h" #if defined(GOOGLE_CHROME_BUILD) || defined(USE_OFFICIAL_GOOGLE_API_KEYS) #include "google_apis/internal/google_chrome_api_keys.h" @@ -69,16 +70,6 @@ #define GOOGLE_DEFAULT_CLIENT_SECRET "" #endif -namespace switches { - -// Specifies custom OAuth2 client id for testing purposes. -const char kOAuth2ClientID[] = "oauth2-client-id"; - -// Specifies custom OAuth2 client secret for testing purposes. -const char kOAuth2ClientSecret[] = "oauth2-client-secret"; - -} // namespace switches - namespace google_apis { // This is used as a lazy instance to determine keys once and cache them. diff --git a/google_apis/google_api_keys_unittest.cc b/google_apis/google_api_keys_unittest.cc index 7432f93..e18cff5 100644 --- a/google_apis/google_api_keys_unittest.cc +++ b/google_apis/google_api_keys_unittest.cc @@ -13,6 +13,7 @@ #include "google_apis/google_api_keys.h" #include "build/build_config.h" +#include "google_apis/gaia/gaia_switches.h" #include "testing/gtest/include/gtest/gtest.h" // The Win builders fail (with a linker crash) when trying to link |