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

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

Issue 2580363002: Upstream Chrome on iOS source code [1/11]. (Closed)
Patch Set: Created 4 years 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698