| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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_BROWSER_WEB_FAKE_MAILTO_HANLDERS_H_ |
| 6 #define IOS_CHROME_BROWSER_WEB_FAKE_MAILTO_HANLDERS_H_ |
| 7 |
| 8 #import "ios/chrome/browser/web/mailto_handler.h" |
| 9 #import "ios/chrome/browser/web/mailto_handler_gmail.h" |
| 10 #import "ios/chrome/browser/web/mailto_url_rewriter.h" |
| 11 |
| 12 // Test fixtures for faking MailtoHandlerGmail objects that reports whether |
| 13 // Gmail app as installed or not. |
| 14 |
| 15 // Fakes Gmail handler where Gmail app is not installed. |
| 16 @interface FakeMailtoHandlerGmailNotInstalled : MailtoHandlerGmail |
| 17 @end |
| 18 |
| 19 // Fakes Gmail handler where Gmail app is installed. |
| 20 @interface FakeMailtoHandlerGmailInstalled : MailtoHandlerGmail |
| 21 @end |
| 22 |
| 23 // An observer object that counts and reports the number of times it has been |
| 24 // called by the MailtoURLRewriter object. |
| 25 @interface CountingMailtoURLRewriterObserver |
| 26 : NSObject<MailtoURLRewriterObserver> |
| 27 // Returns the number of times that observer has been called. |
| 28 @property(nonatomic, readonly) int changeCount; |
| 29 @end |
| 30 |
| 31 #endif // IOS_CHROME_BROWSER_WEB_FAKE_MAILTO_HANLDERS_H_ |
| OLD | NEW |