Commit af33aa38 authored by Gyuyoung Kim's avatar Gyuyoung Kim Committed by Commit Bot

s13n: Replace all uses of AccountTrackerService in chrome_password_protection_service_unittest.cc

As a step to make to use IdentityManager, this CL replaces all uses of ATS
with IdentityManager's ones in chrome_password_protection_service_unittest.cc.

TEST: All tests of ChromePasswordProtectionServiceTest should work well.
Bug: 922768

Change-Id: I551403c7d7c4333b1246fe4b5b933c12783637e7
Reviewed-on: https://chromium-review.googlesource.com/c/1433259Reviewed-by: default avatarColin Blundell <blundell@chromium.org>
Reviewed-by: default avatarNathan Parker <nparker@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Cr-Commit-Position: refs/heads/master@{#626271}
parent 82c19507
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include "chrome/browser/safe_browsing/test_extension_event_observer.h" #include "chrome/browser/safe_browsing/test_extension_event_observer.h"
#include "chrome/browser/safe_browsing/ui_manager.h" #include "chrome/browser/safe_browsing/ui_manager.h"
#include "chrome/browser/signin/account_fetcher_service_factory.h" #include "chrome/browser/signin/account_fetcher_service_factory.h"
#include "chrome/browser/signin/account_tracker_service_factory.h"
#include "chrome/browser/signin/chrome_signin_client_factory.h" #include "chrome/browser/signin/chrome_signin_client_factory.h"
#include "chrome/browser/signin/fake_account_fetcher_service_builder.h" #include "chrome/browser/signin/fake_account_fetcher_service_builder.h"
#include "chrome/browser/signin/identity_test_environment_profile_adaptor.h" #include "chrome/browser/signin/identity_test_environment_profile_adaptor.h"
...@@ -33,7 +32,6 @@ ...@@ -33,7 +32,6 @@
#include "components/safe_browsing/password_protection/password_protection_navigation_throttle.h" #include "components/safe_browsing/password_protection/password_protection_navigation_throttle.h"
#include "components/safe_browsing/password_protection/password_protection_request.h" #include "components/safe_browsing/password_protection/password_protection_request.h"
#include "components/signin/core/browser/account_info.h" #include "components/signin/core/browser/account_info.h"
#include "components/signin/core/browser/account_tracker_service.h"
#include "components/signin/core/browser/fake_account_fetcher_service.h" #include "components/signin/core/browser/fake_account_fetcher_service.h"
#include "components/strings/grit/components_strings.h" #include "components/strings/grit/components_strings.h"
#include "components/sync/user_events/fake_user_event_service.h" #include "components/sync/user_events/fake_user_event_service.h"
...@@ -255,13 +253,9 @@ class ChromePasswordProtectionServiceTest ...@@ -255,13 +253,9 @@ class ChromePasswordProtectionServiceTest
FakeAccountFetcherService* account_fetcher_service = FakeAccountFetcherService* account_fetcher_service =
static_cast<FakeAccountFetcherService*>( static_cast<FakeAccountFetcherService*>(
AccountFetcherServiceFactory::GetForProfile(profile())); AccountFetcherServiceFactory::GetForProfile(profile()));
AccountTrackerService* account_tracker_service =
AccountTrackerServiceFactory::GetForProfile(profile());
std::string gaia_id = account_info.gaia;
std::string email = account_info.email;
account_fetcher_service->FakeUserInfoFetchSuccess( account_fetcher_service->FakeUserInfoFetchSuccess(
account_tracker_service->PickAccountIdForAccount(gaia_id, email), email, account_info.account_id, account_info.email, account_info.gaia,
gaia_id, hosted_domain, "full_name", "given_name", "locale", hosted_domain, "full_name", "given_name", "locale",
"http://picture.example.com/picture.jpg"); "http://picture.example.com/picture.jpg");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment