Move GREYAsserts from tab_usage_recorder_test_util into the corresponding EG test.
This is part of EG1 to EG2 migration, which involves moving EarlGrey code from app-side helpers into test code. For GREYAsserts, the policy is to take assert- containing-helpers, modify them to return NSError* with localizedDescription containing the assert failure (in the event of a failure), and then assert on the result of the helper on the test side. I add a new helper which assists in creating NSErrors. Bug: 922813 Change-Id: Ib2fc2bb0b016afc416ccbbdae19c4acbcaf48350 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1553085 Commit-Queue: ericale <ericale@chromium.org> Reviewed-by:Eugene But <eugenebut@chromium.org> Cr-Commit-Position: refs/heads/master@{#649718}
Showing
Please register or sign in to comment