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