Clarify the "isInGuestMode" test extension command
Add FileManageBrowserTestBase private helper routines: IsGuestModeTest and IsIncognitoModeTest to return true when the test extension browser test has that GetGuestMode(). Use the helpers everywhere. The "isInGuestMode" command actually wants to know if the test runs in guest or incognito mode, or not. Write that out explicitly in its code and add LOG(INFO) and ASSERT_EQ() for even more explanation. Move "isInGuestMode" command so it's the first, move "getTestCaseName" command so it's third, to match the call order the test extensions use to call them: isInGuestMode, getRootPaths, getTestCaseName [1]. Minor change to getRootPaths: call the variable downloads_root. [1] The test extensions call in this order always and once these three are done, the test extensions start running the test case. Another way to think about it is: these three commands are preliminary set-up that every Files.app browser test case requires. All remaining commands are specific to the current test case. Bug: 833834 Change-Id: Ida01b88e745df6bf4b760aa421d36c5d8e872ecd Reviewed-on: https://chromium-review.googlesource.com/1043672Reviewed-by:Noel Gordon <noel@chromium.org> Reviewed-by:
Stuart Langley <slangley@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#556362}
Showing
Please register or sign in to comment