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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h

Issue 1066453002: Refactor CryptAuth component to be more testable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cryptauth_securemessage
Patch Set: rename tests Created 5 years, 8 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: components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h
diff --git a/components/proximity_auth/cryptauth/cryptauth_account_token_fetcher.h b/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h
similarity index 72%
rename from components/proximity_auth/cryptauth/cryptauth_account_token_fetcher.h
rename to components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h
index 49ce4b0781d6ed7218a734fddc26162d62fc55de..af798ae159d8fedd8462a4abc8e05e4d6774ac32 100644
--- a/components/proximity_auth/cryptauth/cryptauth_account_token_fetcher.h
+++ b/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ACCOUNT_TOKEN_FETCHER_IMPL_H
-#define COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ACCOUNT_TOKEN_FETCHER_IMPL_H
+#ifndef COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ACCESS_TOKEN_FETCHER_IMPL_H
+#define COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ACCESS_TOKEN_FETCHER_IMPL_H
#include "base/callback.h"
#include "components/proximity_auth/cryptauth/cryptauth_access_token_fetcher.h"
@@ -13,13 +13,13 @@ namespace proximity_auth {
// Implementation of CryptAuthAccessTokenFetcher fetching an access token for a
// given account using the provided OAuth2TokenService.
-class CryptAuthAccountTokenFetcher : public CryptAuthAccessTokenFetcher,
- public OAuth2TokenService::Consumer {
+class CryptAuthAccessTokenFetcherImpl : public CryptAuthAccessTokenFetcher,
+ public OAuth2TokenService::Consumer {
public:
// |token_service| is not owned, and must outlive this object.
- CryptAuthAccountTokenFetcher(OAuth2TokenService* token_service,
- const std::string& account_id);
- ~CryptAuthAccountTokenFetcher() override;
+ CryptAuthAccessTokenFetcherImpl(OAuth2TokenService* token_service,
+ const std::string& account_id);
+ ~CryptAuthAccessTokenFetcherImpl() override;
// CryptAuthAccessTokenFetcher:
void FetchAccessToken(const AccessTokenCallback& callback) override;
@@ -48,9 +48,9 @@ class CryptAuthAccountTokenFetcher : public CryptAuthAccessTokenFetcher,
// Callback to invoke when the token fetch succeeds or fails.
AccessTokenCallback callback_;
- DISALLOW_COPY_AND_ASSIGN(CryptAuthAccountTokenFetcher);
+ DISALLOW_COPY_AND_ASSIGN(CryptAuthAccessTokenFetcherImpl);
};
} // namespace proximity_auth
-#endif // COMPONENTS_PROXIMITY_AUTH_CRYPT_AUTH_ACCESS_TOKEN_FETCHER_IMPL_H
+#endif // COMPONENTS_PROXIMITY_AUTH_CRYPTAUTH_ACCESS_TOKEN_FETCHER_IMPL_H

Powered by Google App Engine
This is Rietveld 408576698