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

Unified Diff: components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl_unittest.cc

Issue 1143323005: Refactor AO2TS to make it easier to componentize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address roger's comments Created 5 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: components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl_unittest.cc
diff --git a/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl_unittest.cc b/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl_unittest.cc
index 3fa70a5e3bf3a44b7fb16d4ae5c27b4d57f49c39..e1f2816f1a9b76a4c1f69d40fe273402f5d34bf6 100644
--- a/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl_unittest.cc
+++ b/components/proximity_auth/cryptauth/cryptauth_access_token_fetcher_impl_unittest.cc
@@ -29,7 +29,8 @@ class ProximityAuthCryptAuthAccessTokenFetcherTest : public testing::Test {
protected:
ProximityAuthCryptAuthAccessTokenFetcherTest()
: fetcher_(&token_service_, kAccountId) {
- token_service_.AddAccount(kAccountId);
+ token_service_.GetDelegate()->UpdateCredentials(kAccountId,
+ "refresh_token");
}
FakeOAuth2TokenService token_service_;

Powered by Google App Engine
This is Rietveld 408576698