• zhaoyangli's avatar
    Make autofill automation EG2 compatible and create eg2test target. · 0a7e8c38
    zhaoyangli authored
    This is the major change for autofill automation EG2 migration.
    
    - Separated test and app side code in former automation_egtest.mm by
    creating private helper function and app interface for app side calls.
    |NSString*| and |NSError*| are communicated between test and app. App
    interface code is mostly migrated from automation_egtest.mm with minor
    changes:
      - |GREYAssert|s are changed to |NSError*| to be sent back to test.
      - Moved some instance variable and methods to static variable and
      functions.
    
    - Overrode |launchAppForTestMethod| in |AutofillAutomationTestCase| to
    start app with needed features.
    
    - Created eg2test target and eg_app_support+eg2 target in automation
    BUILD.gn. Created new eg2tests_module and included new eg2test target
    in earlgrey2 BUILD.gn.
    
    - Removed unused headers in code and unused deps from build file.
    
    
    Bug: 987646, 1003605
    Change-Id: I22ae675848bd1b08df9cdb375a6dcfb2f42b8c75
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1850739
    Commit-Queue: Zhaoyang Li <zhaoyangli@chromium.org>
    Reviewed-by: default avatarDominic Battré <battre@chromium.org>
    Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
    Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#706954}
    0a7e8c38
automation_egtest.mm 7.02 KB