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

Side by Side Diff: ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm

Issue 2667753008: [ObjC ARC] Converts ios/public/provider/chrome/browser/voice:test_support to ARC. (Closed)
Patch Set: Created 3 years, 10 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/public/provider/chrome/browser/voice/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/public/provider/chrome/browser/voice/test_voice_search_provider.h" 5 #import "ios/public/provider/chrome/browser/voice/test_voice_search_provider.h"
6 6
7 #include "base/mac/scoped_nsobject.h"
8 #import "ios/public/provider/chrome/browser/voice/voice_search_language.h" 7 #import "ios/public/provider/chrome/browser/voice/voice_search_language.h"
9 8
9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support."
11 #endif
12
10 TestVoiceSearchProvider::TestVoiceSearchProvider() {} 13 TestVoiceSearchProvider::TestVoiceSearchProvider() {}
11 14
12 TestVoiceSearchProvider::~TestVoiceSearchProvider() {} 15 TestVoiceSearchProvider::~TestVoiceSearchProvider() {}
13 16
14 NSArray* TestVoiceSearchProvider::GetAvailableLanguages() const { 17 NSArray* TestVoiceSearchProvider::GetAvailableLanguages() const {
15 base::scoped_nsobject<VoiceSearchLanguage> en([[VoiceSearchLanguage alloc] 18 VoiceSearchLanguage* en =
16 initWithIdentifier:@"en-US" 19 [[VoiceSearchLanguage alloc] initWithIdentifier:@"en-US"
17 displayName:@"English (US)" 20 displayName:@"English (US)"
18 localizationPreference:nil]); 21 localizationPreference:nil];
19 return @[ en ]; 22 return @[ en ];
20 } 23 }
21 24
22 AudioSessionController* TestVoiceSearchProvider::GetAudioSessionController() 25 AudioSessionController* TestVoiceSearchProvider::GetAudioSessionController()
23 const { 26 const {
24 // TODO(rohitrao): Return a TestAudioSessionController once the class with the 27 // TODO(rohitrao): Return a TestAudioSessionController once the class with the
25 // same name is removed from the internal tree. 28 // same name is removed from the internal tree.
26 return nullptr; 29 return nullptr;
27 } 30 }
OLDNEW
« no previous file with comments | « ios/public/provider/chrome/browser/voice/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698