commit | 3b37c4e4913639d346efc02cb8dfeed80c3b1b27 | [log] [tgz] |
---|---|---|
author | Colin Blundell <[email protected]> | Wed Jun 06 11:35:43 2018 |
committer | Commit Bot <[email protected]> | Wed Jun 06 11:35:43 2018 |
tree | e53aea8c284e8f1c95204c542a7206267c170557 | |
parent | f0bd58341f6ae77974df0d01cf7c8e456c570101 [diff] |
Eliminate FakeIdentityProvider As a convenience step in the porting of the IdentityProvider interface and implementation away from OAuth2TokenService, this CL eliminates FakeIdentityProvider. This change reduces the number of IdentityProvider implementations to two and will avoid duplication of code between FakeIdentityProvider and DeviceIdentityProvider when IdentityProvider and ProfileIdentityProvider are later ported away from knowledge of/dependence on OAuth2TokenService. The change is straightforward: The remaining tests that use FakeIdentityProvider don't use any of its custom hooks for testing. All that was necessary was to let ProfileIdentityProvider have a test constructor that allows for its SigninManager instance to be null. This avoids the need for these tests to construct a FakeSigninManager(Base) instance, which is a pain to do. Once ProfileIdentityProvider is converted to take in IdentityManager, this test constructor can go away, as it is a breeze to construct IdentityManager in a testing context via IdentityTestEnvironment. Bug: 809452 Change-Id: I2f699d6776542626800e59bda731579338076077 Reviewed-on: https://chromium-review.googlesource.com/1087054 Reviewed-by: Pavel Yatsuk <[email protected]> Commit-Queue: Colin Blundell <[email protected]> Cr-Commit-Position: refs/heads/master@{#564856}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .