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

Side by Side Diff: ios/chrome/browser/ui/contextual_search/touch_to_search_permissions_mediator+testing.mm

Issue 2831113003: [ObjC ARC] Converts ios/chrome/browser/ui/contextual_search:test_support to ARC. (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/ui/contextual_search/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/contextual_search/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698