OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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/ui/contextual_search/touch_to_search_permissions_med
iator+testing.h" | 5 #import "ios/chrome/browser/ui/contextual_search/touch_to_search_permissions_med
iator+testing.h" |
6 | 6 |
| 7 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 8 #error "This file requires ARC support." |
| 9 #endif |
| 10 |
7 namespace ios { | 11 namespace ios { |
8 class ChromeBrowserState; | 12 class ChromeBrowserState; |
9 } | 13 } |
10 | 14 |
11 static BOOL isTouchToSearchAvailable = YES; | 15 static BOOL isTouchToSearchAvailable = YES; |
12 | 16 |
13 @implementation MockTouchToSearchPermissionsMediator | 17 @implementation MockTouchToSearchPermissionsMediator |
14 @synthesize canSendPageURLs; | 18 @synthesize canSendPageURLs; |
15 @synthesize canPreloadSearchResults; | 19 @synthesize canPreloadSearchResults; |
16 @synthesize areContextualSearchQueriesSupported; | 20 @synthesize areContextualSearchQueriesSupported; |
(...skipping 27 matching lines...) Expand all Loading... |
44 | 48 |
45 - (void)setUpBrowserState:(ios::ChromeBrowserState*)browserState { | 49 - (void)setUpBrowserState:(ios::ChromeBrowserState*)browserState { |
46 // no-op, overriding superclass method. | 50 // no-op, overriding superclass method. |
47 } | 51 } |
48 | 52 |
49 - (BOOL)canExtractTapContextForURL:(const GURL&)url { | 53 - (BOOL)canExtractTapContextForURL:(const GURL&)url { |
50 return canExtractTapContextForAllURLs; | 54 return canExtractTapContextForAllURLs; |
51 } | 55 } |
52 | 56 |
53 @end | 57 @end |
OLD | NEW |