| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef IOS_CHROME_APP_APPLICATION_DELEGATE_MOCK_TAB_OPENER_H_ | 5 #ifndef IOS_CHROME_APP_APPLICATION_DELEGATE_MOCK_TAB_OPENER_H_ |
| 6 #define IOS_CHROME_APP_APPLICATION_DELEGATE_MOCK_TAB_OPENER_H_ | 6 #define IOS_CHROME_APP_APPLICATION_DELEGATE_MOCK_TAB_OPENER_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #import "ios/chrome/app/application_delegate/tab_opening.h" | 10 #import "ios/chrome/app/application_delegate/tab_opening.h" |
| 11 | 11 |
| 12 class GURL; | 12 class GURL; |
| 13 | 13 |
| 14 // Mocks a class adopting the TabOpening protocol. It save the arguments of | 14 // Mocks a class adopting the TabOpening protocol. It save the arguments of |
| 15 // -dismissModalsAndOpenSelectedTabInMode:withURL:transition:completion:. | 15 // -dismissModalsAndOpenSelectedTabInMode:withURL:transition:completion:. |
| 16 @interface MockTabOpener : NSObject<TabOpening> | 16 @interface MockTabOpener : NSObject<TabOpening> |
| 17 // Arguments for | 17 // Arguments for |
| 18 // -dismissModalsAndOpenSelectedTabInMode:withURL:transition:completion:. | 18 // -dismissModalsAndOpenSelectedTabInMode:withURL:transition:completion:. |
| 19 @property(nonatomic, readonly) GURL url; | 19 @property(nonatomic, readonly) GURL url; |
| 20 @property(nonatomic, readonly) ApplicationMode applicationMode; | 20 @property(nonatomic, readonly) ApplicationMode applicationMode; |
| 21 @property(nonatomic, readonly) void (^completionBlock)(void); | 21 @property(nonatomic, strong, readonly) void (^completionBlock)(void); |
| 22 | 22 |
| 23 // Clear the URL. | 23 // Clear the URL. |
| 24 - (void)resetURL; | 24 - (void)resetURL; |
| 25 @end | 25 @end |
| 26 | 26 |
| 27 #endif // IOS_CHROME_APP_APPLICATION_DELEGATE_MOCK_TAB_OPENER_H_ | 27 #endif // IOS_CHROME_APP_APPLICATION_DELEGATE_MOCK_TAB_OPENER_H_ |
| OLD | NEW |