OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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 #import "ios/chrome/browser/web/fake_mailto_handler_helpers.h" | 5 #import "ios/chrome/browser/web/fake_mailto_handler_helpers.h" |
6 | 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
| 10 |
7 @implementation FakeMailtoHandlerGmailNotInstalled | 11 @implementation FakeMailtoHandlerGmailNotInstalled |
8 - (BOOL)isAvailable { | 12 - (BOOL)isAvailable { |
9 return NO; | 13 return NO; |
10 } | 14 } |
11 @end | 15 @end |
12 | 16 |
13 @implementation FakeMailtoHandlerGmailInstalled | 17 @implementation FakeMailtoHandlerGmailInstalled |
14 - (BOOL)isAvailable { | 18 - (BOOL)isAvailable { |
15 return YES; | 19 return YES; |
16 } | 20 } |
17 @end | 21 @end |
18 | 22 |
19 @implementation CountingMailtoURLRewriterObserver | 23 @implementation CountingMailtoURLRewriterObserver |
20 @synthesize changeCount = _changeCount; | 24 @synthesize changeCount = _changeCount; |
21 - (void)rewriterDidChange:(MailtoURLRewriter*)rewriter { | 25 - (void)rewriterDidChange:(MailtoURLRewriter*)rewriter { |
22 ++_changeCount; | 26 ++_changeCount; |
23 } | 27 } |
24 @end | 28 @end |
OLD | NEW |