Description[MR] Fix MediaRouterDialogDelegate and MediaRouterActionUnitTest.
- 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
Committed: https://crrev.com/7b1b702ddf43a7fb214a460ff43d976b73e1a973
Cr-Commit-Position: refs/heads/master@{#356978}
Patch Set 1 : test should fail in this ps because action_ is now set, resulting in wrong expectations #Patch Set 2 : Tests should hopefully pass now with a fix in expectations #Patch Set 3 : cleanup #
Total comments: 14
Patch Set 4 : Addressed comments #
Messages
Total messages: 15 (3 generated)
|