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

Unified Diff: ios/chrome/browser/web/fake_mailto_handler_helpers.h

Issue 2870783002: Adds Compose Email Settings UI for deprecating Native App Launcher (Closed)
Patch Set: replied to comments from rohitrao Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/web/BUILD.gn ('k') | ios/chrome/browser/web/fake_mailto_handler_helpers.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/fake_mailto_handler_helpers.h
diff --git a/ios/chrome/browser/web/fake_mailto_handler_helpers.h b/ios/chrome/browser/web/fake_mailto_handler_helpers.h
new file mode 100644
index 0000000000000000000000000000000000000000..c48d7ca89ca91e9beac0c4bf8cb0b65b5b3fb3b9
--- /dev/null
+++ b/ios/chrome/browser/web/fake_mailto_handler_helpers.h
@@ -0,0 +1,31 @@
+// Copyright 2017 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_BROWSER_WEB_FAKE_MAILTO_HANLDERS_H_
+#define IOS_CHROME_BROWSER_WEB_FAKE_MAILTO_HANLDERS_H_
+
+#import "ios/chrome/browser/web/mailto_handler.h"
+#import "ios/chrome/browser/web/mailto_handler_gmail.h"
+#import "ios/chrome/browser/web/mailto_url_rewriter.h"
+
+// Test fixtures for faking MailtoHandlerGmail objects that reports whether
+// Gmail app as installed or not.
+
+// Fakes Gmail handler where Gmail app is not installed.
+@interface FakeMailtoHandlerGmailNotInstalled : MailtoHandlerGmail
+@end
+
+// Fakes Gmail handler where Gmail app is installed.
+@interface FakeMailtoHandlerGmailInstalled : MailtoHandlerGmail
+@end
+
+// An observer object that counts and reports the number of times it has been
+// called by the MailtoURLRewriter object.
+@interface CountingMailtoURLRewriterObserver
+ : NSObject<MailtoURLRewriterObserver>
+// Returns the number of times that observer has been called.
+@property(nonatomic, readonly) int changeCount;
+@end
+
+#endif // IOS_CHROME_BROWSER_WEB_FAKE_MAILTO_HANLDERS_H_
« no previous file with comments | « ios/chrome/browser/web/BUILD.gn ('k') | ios/chrome/browser/web/fake_mailto_handler_helpers.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698