• Lutz Justen's avatar
    Clean up affiliation test helper · 4890026c
    Lutz Justen authored
    Changes affiliation test helper from a bunch of static methods to a
    class with two factory methods, one for cloud management, the other for
    Active Directory management. The former implementation was a bit hand-
    waving ("pass the same session manager instance into the two
    Set*AffiliationIDs functions", "you don't need fake_auth_policy_client
    for non-AD accounts"). The class is much cleaner. Internally, it doesn't
    rely on side effects ("we're probably in AD mode if the auth policy
    client has been started").
    
    BUG=chromium:865969
    TEST=tryjobs
    
    Change-Id: I4ba5e0f9e4b410532cd098cd5ae73f2156a58c83
    Reviewed-on: https://chromium-review.googlesource.com/1168496Reviewed-by: default avatarPavol Marko <pmarko@chromium.org>
    Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
    Commit-Queue: Lutz Justen <ljusten@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#585733}
    4890026c
unaffiliated_arc_allowed_browsertest.cc 5.63 KB