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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/app/application_delegate/mock_tab_opener.h
diff --git a/ios/chrome/app/application_delegate/mock_tab_opener.h b/ios/chrome/app/application_delegate/mock_tab_opener.h
new file mode 100644
index 0000000000000000000000000000000000000000..fd1e8bec7ff4433a98c7ca65c4f864d0d52309fc
--- /dev/null
+++ b/ios/chrome/app/application_delegate/mock_tab_opener.h
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_APP_APPLICATION_DELEGATE_MOCK_TAB_OPENER_H_
+#define IOS_CHROME_APP_APPLICATION_DELEGATE_MOCK_TAB_OPENER_H_
+
+#import <Foundation/Foundation.h>
+
+#import "ios/chrome/app/application_delegate/tab_opening.h"
+
+class GURL;
+
+// Mocks a class adopting the TabOpening protocol. It save the arguments of
+// -dismissModalsAndOpenSelectedTabInMode:withURL:transition:completion:.
+@interface MockTabOpener : NSObject<TabOpening>
+// Arguments for
+// -dismissModalsAndOpenSelectedTabInMode:withURL:transition:completion:.
+@property(nonatomic, readonly) GURL url;
+@property(nonatomic, readonly) ApplicationMode applicationMode;
+@property(nonatomic, readonly) void (^completionBlock)(void);
+
+// Clear the URL.
+- (void)resetURL;
+@end
+
+#endif // IOS_CHROME_APP_APPLICATION_DELEGATE_MOCK_TAB_OPENER_H_

Powered by Google App Engine
This is Rietveld 408576698