Consolidate FirstRunGlue, FirstRunGlueImpl and code in FirstRunFlowSequencer |
||
Issue descriptionConsolidate FirstRunGlue, FirstRunGlueImpl and code in FirstRunFlowSequencer. First, we currently don't make use the indirection set up by FirstRunGlue interface - additionally there's also related code already in FirstRunFlowSequencer that doesn't go through FirstRunGlue - e.g. isFirstRunEulaAccepted() and others. We should consolidate all of this into one places - maybe FirstRunGlue with static functions.
,
Dec 2 2016
Re: Test coverage, looks like we have the following tests: FirstRunFlowSequencerTest.java - unit test that just exercises FirstRunFlowSequencer code FirstRunIntegrationTest.java - integration test that simulates sending BACK key on FRE screen to make sure activity is closed So there's no unit test coverage of FirstRunActivity, which is where FirstRunGlue is used. Though I'm also not sure how much the glue is helpful in writing tests for it - i.e. why would we need to abstract for example isDefaultAccountName() but not other things. And maybe some of those can be done easier by just subclassing FirstRunActivity - for example a few of those already have methods in FirstRunActivity that just call the glue ones - like didAcceptTermsOfService, openAccountAdder, etc. I guess the real question is which things we want to have test coverage for and whether the glue as it is implemented now is helpful for testing them or not.
,
Sep 25
Looks like FirstRunGlue and FirstRunGlueImpl no longer exist, so this is WontFix as obsolete. Yay for whoever did the cleanup. |
||
►
Sign in to add a comment |
||
Comment 1 by tedc...@chromium.org
, Nov 29 2016