| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/browser_commands.h" | 5 #include "chrome/browser/ui/browser_commands.h" |
| 6 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 6 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 7 #include "chrome/browser/ui/toolbar/media_router_action.h" | 7 #include "chrome/browser/ui/toolbar/media_router_action.h" |
| 8 #include "chrome/browser/ui/toolbar/toolbar_action_view_delegate.h" | 8 #include "chrome/browser/ui/toolbar/toolbar_action_view_delegate.h" |
| 9 #include "chrome/browser/ui/webui/media_router/media_router_dialog_controller_im
pl.h" | 9 #include "chrome/browser/ui/webui/media_router/media_router_dialog_controller_im
pl.h" |
| 10 #include "chrome/browser/ui/webui/media_router/media_router_test.h" | 10 #include "chrome/browser/ui/webui/media_router/media_router_test.h" |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 testing::Return(initiator_)); | 335 testing::Return(initiator_)); |
| 336 EXPECT_CALL(*mock_delegate, OnPopupClosed()).WillOnce(testing::Return()); | 336 EXPECT_CALL(*mock_delegate, OnPopupClosed()).WillOnce(testing::Return()); |
| 337 action()->SetDelegate(mock_delegate.get()); | 337 action()->SetDelegate(mock_delegate.get()); |
| 338 | 338 |
| 339 EXPECT_CALL(*mock_delegate, OnPopupShown(true)).WillOnce(testing::Return()); | 339 EXPECT_CALL(*mock_delegate, OnPopupShown(true)).WillOnce(testing::Return()); |
| 340 action()->ExecuteAction(true); | 340 action()->ExecuteAction(true); |
| 341 | 341 |
| 342 EXPECT_CALL(*mock_delegate, OnPopupClosed()).WillOnce(testing::Return()); | 342 EXPECT_CALL(*mock_delegate, OnPopupClosed()).WillOnce(testing::Return()); |
| 343 dialog_controller_->CloseMediaRouterDialog(); | 343 dialog_controller_->CloseMediaRouterDialog(); |
| 344 | 344 |
| 345 EXPECT_CALL(*mock_delegate, OnPopupClosed()).WillOnce(testing::Return()); |
| 345 dialog_controller_->Reset(); | 346 dialog_controller_->Reset(); |
| 347 |
| 346 EXPECT_CALL(*mock_delegate, OnPopupShown(true)).WillOnce(testing::Return()); | 348 EXPECT_CALL(*mock_delegate, OnPopupShown(true)).WillOnce(testing::Return()); |
| 347 dialog_controller_->CreateMediaRouterDialog(); | 349 dialog_controller_->CreateMediaRouterDialog(); |
| 348 | 350 |
| 349 EXPECT_CALL(*mock_delegate, OnPopupClosed()).WillOnce(testing::Return()); | 351 EXPECT_CALL(*mock_delegate, OnPopupClosed()).WillOnce(testing::Return()); |
| 350 dialog_controller_->CloseMediaRouterDialog(); | 352 dialog_controller_->CloseMediaRouterDialog(); |
| 351 } | 353 } |
| OLD | NEW |