• imcheng's avatar
    [MR] Fix MediaRouterDialogDelegate and MediaRouterActionUnitTest. · 7b1b702d
    imcheng authored
    - MediaRouterDialogDelegate has a WeakPtr to MediaRouterAction, but it
    it never set in the ctor. The SetAction() method appears to be never
    called. As a result, the WeakPtr is always null. This patch sets action_
    in the ctor. Changed expectations in test.
    
    - MediaRouterActionUnitTest setup is incorrect. It should call
    MediaRouterTest to have the kEnableMediaRouter switch activated.
    
    - MediaRouterActionUnitTest should only be inlcuded if we are building
    Media Router.
    
    BUG=548456
    
    Review URL: https://codereview.chromium.org/1417893005
    
    Cr-Commit-Position: refs/heads/master@{#356978}
    7b1b702d
chrome_tests_unit.gypi 160 KB