OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #import <Foundation/Foundation.h> | 5 #import <Foundation/Foundation.h> |
6 #import <PassKit/PassKit.h> | 6 #import <PassKit/PassKit.h> |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 mockForClass:[BrowserViewControllerDependencyFactory class]]; | 229 mockForClass:[BrowserViewControllerDependencyFactory class]]; |
230 [[[factory stub] andReturn:nil] | 230 [[[factory stub] andReturn:nil] |
231 newTabStripControllerWithTabModel:[OCMArg any]]; | 231 newTabStripControllerWithTabModel:[OCMArg any]]; |
232 [[[factory stub] andReturn:nil] newPreloadController]; | 232 [[[factory stub] andReturn:nil] newPreloadController]; |
233 [[[factory stub] andReturnValue:OCMOCK_VALUE(toolbarModelIOS_)] | 233 [[[factory stub] andReturnValue:OCMOCK_VALUE(toolbarModelIOS_)] |
234 newToolbarModelIOSWithDelegate:static_cast<ToolbarModelDelegateIOS*>( | 234 newToolbarModelIOSWithDelegate:static_cast<ToolbarModelDelegateIOS*>( |
235 [OCMArg anyPointer])]; | 235 [OCMArg anyPointer])]; |
236 [[[factory stub] andReturn:nil] | 236 [[[factory stub] andReturn:nil] |
237 newWebToolbarControllerWithDelegate:[OCMArg any] | 237 newWebToolbarControllerWithDelegate:[OCMArg any] |
238 urlLoader:[OCMArg any] | 238 urlLoader:[OCMArg any] |
239 preloadProvider:[OCMArg any]]; | 239 preloadProvider:[OCMArg any] |
| 240 dispatcher:[OCMArg any]]; |
240 [[[factory stub] andReturn:shareController_] shareControllerInstance]; | 241 [[[factory stub] andReturn:shareController_] shareControllerInstance]; |
241 [[[factory stub] andReturn:passKitViewController_] | 242 [[[factory stub] andReturn:passKitViewController_] |
242 newPassKitViewControllerForPass:nil]; | 243 newPassKitViewControllerForPass:nil]; |
243 [[[factory stub] andReturn:nil] showPassKitErrorInfoBarForManager:nil]; | 244 [[[factory stub] andReturn:nil] showPassKitErrorInfoBarForManager:nil]; |
244 | 245 |
245 webController_ = webControllerMock; | 246 webController_ = webControllerMock; |
246 tabModel_ = tabModel; | 247 tabModel_ = tabModel; |
247 tab_ = currentTab; | 248 tab_ = currentTab; |
248 dependencyFactory_ = factory; | 249 dependencyFactory_ = factory; |
249 bvc_ = [[BrowserViewController alloc] | 250 bvc_ = [[BrowserViewController alloc] |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 static_cast<OCMockObject*>(shareController_); | 578 static_cast<OCMockObject*>(shareController_); |
578 [[shareControllerMock expect] cancelShareAnimated:NO]; | 579 [[shareControllerMock expect] cancelShareAnimated:NO]; |
579 EXPECT_CALL(*this, OnCompletionCalled()); | 580 EXPECT_CALL(*this, OnCompletionCalled()); |
580 [bvc_ clearPresentedStateWithCompletion:^{ | 581 [bvc_ clearPresentedStateWithCompletion:^{ |
581 this->OnCompletionCalled(); | 582 this->OnCompletionCalled(); |
582 }]; | 583 }]; |
583 EXPECT_OCMOCK_VERIFY(shareControllerMock); | 584 EXPECT_OCMOCK_VERIFY(shareControllerMock); |
584 } | 585 } |
585 | 586 |
586 } // namespace | 587 } // namespace |
OLD | NEW |