Port EasyUnlockService unittest to IdentityTestEnvironment
This is possible now that there is //chrome-level infrastructure for glueing an IdentityTestEnvironment instance to a Profile. Note that this particular test is somewhat unusual in that it builds multiple Profiles but does not require IdentityTestEnvironment to interact with those Profiles beyond doing initial configuration. For simplicity, we use local variables for the IdentityTestEnvironment associated with each Profile; otherwise, we would need to introduce distinct instance variables for the two. This CL also modifies the relevant IdentityTestEnvironmentProfileAdaptor APIs to return the TestingProfiles that they create as TestingProfiles; this avoids a cast that this test would otherwise require and clarifies the APIs. TBR=droger@chcromium.org Bug: 896180 Change-Id: Icba8cdc67c1667949636a96078f05e15fd79649c Reviewed-on: https://chromium-review.googlesource.com/c/1283038 Commit-Queue: Colin Blundell <blundell@chromium.org> Reviewed-by:James Hawkins <jhawkins@chromium.org> Cr-Commit-Position: refs/heads/master@{#600767}
Showing
Please register or sign in to comment