Commit e0891e0c authored by Abhijeet Kandalkar's avatar Abhijeet Kandalkar Committed by Commit Bot

Add IdentityTestEnvironment::EnableOnAccountUpdatedAndOnAccountRemovedWithInfoCallbacks() method

This CL implements method to enable interactions with
AccountFetcherService in the testing context.

Bug: 927664
Change-Id: I4149ec5ffed46b8c3c34f423aa6d4cbbb58ef6ba
Reviewed-on: https://chromium-review.googlesource.com/c/1454202
Commit-Queue: Abhijeet Kandalkar <abhijeet@igalia.com>
Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629185}
parent 61f40095
......@@ -511,4 +511,9 @@ void IdentityTestEnvironment::SetFreshnessOfAccountsInGaiaCookie(
accounts_are_fresh);
}
void IdentityTestEnvironment::
EnableOnAccountUpdatedAndOnAccountRemovedWithInfoCallbacks() {
account_fetcher_service_->EnableNetworkFetchesForTest();
}
} // namespace identity
......@@ -257,6 +257,9 @@ class IdentityTestEnvironment : public IdentityManager::DiagnosticsObserver {
// need to be updated.
void SetFreshnessOfAccountsInGaiaCookie(bool accounts_are_fresh);
// Enable interaction with AccountFetcherService in testing context.
void EnableOnAccountUpdatedAndOnAccountRemovedWithInfoCallbacks();
private:
friend class ::IdentityTestEnvironmentChromeBrowserStateAdaptor;
friend class ::IdentityTestEnvironmentProfileAdaptor;
......
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