Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Side by Side Diff: ios/chrome/app/application_delegate/mock_tab_opener.h

Issue 2706033003: [ObjC ARC] Converts ios/chrome/app/application_delegate:test_support to ARC. (Closed)
Patch Set: comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698