Allow mocking of SigninViewController methods
Unit testing the new AccountStorageAuthHelper requires mocking 2 of the methods of SigninViewController. This CL makes such methods virtual and adds the basic unit test setup. Future CLs will: 1) Refactor AccountStorageAuthHelper so that it can be injected a signin_view_controller_getter callback. The controller itself cannot be directly injected since its attached to a browser, while the helper is per tab. 2) Add the actual tests. Bug: 1070944 Change-Id: I48fe5031e24ee6488be293d7f96f44c4716ae6b1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2153047 Commit-Queue: Victor Vianna <victorvianna@google.com> Reviewed-by:Vasilii Sukhanov <vasilii@chromium.org> Reviewed-by:
Mihai Sardarescu <msarda@chromium.org> Cr-Commit-Position: refs/heads/master@{#760039}
Showing
Please register or sign in to comment