DescriptionAdd support for deferring app initialization when testing.
This will allow certain app features such as authentication and loading of the
host list to be replaced with mocks before they are used; in normal operation,
these features are run automatically when the app is loaded, giving browser
tests no opportunity to intervene.
This is achieved by using the "source" URL parameter. Production code is
unaffected by virtue of the fact that "source" is not passed by default, and
even if a user is running with a command-line override, it will never be set
to "test". As protection against the possibility that the previous sentence
is false, when started in this test mode, initialization proceeds via a
button click, making it user-accessible; this CL also adds a test that this
button works.
Committed: https://crrev.com/0932e48fc8387c01cd1edf092c42957f794b9b01
Cr-Commit-Position: refs/heads/master@{#308513}
Patch Set 1 #Patch Set 2 : Rebase #
Total comments: 5
Patch Set 3 : Rebase. #Patch Set 4 : Rebase. #
Total comments: 6
Patch Set 5 : Simplified ScopedOverride logic and made it work irrespective of command-line settings. #Patch Set 6 : Improved comment. #Messages
Total messages: 16 (4 generated)
|