Ensure that IdentityTestEnvironment use the correct PO2TS
IdentityTestEnvironment's method casts the PO2TS to a FakePO2TS but do not enforce this at compilation (in order to support IdentityTestEnvironmentProfileAdaptor). Add a DCHECK in IdentityTestEnvironment::Initialize() to check that the PO2TS is a FakeProfileOAuth2TokenService (required to add a new virtual method to determine this as Chromium builds without RTTI). Bug: 982751 Change-Id: I151a3e63f22b941d6be40151bba2e453e43be43c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1795602 Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Reviewed-by:Mihai Sardarescu <msarda@chromium.org> Reviewed-by:
Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#697961}
Showing
Please register or sign in to comment