| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "ios/public/provider/chrome/browser/voice/test_voice_search_provider.h" |
| 6 |
| 7 #include "base/mac/scoped_nsobject.h" |
| 8 #include "base/memory/ptr_util.h" |
| 9 #import "ios/public/provider/chrome/browser/voice/voice_search_language.h" |
| 10 |
| 11 namespace ios { |
| 12 |
| 13 TestVoiceSearchProvider::TestVoiceSearchProvider() {} |
| 14 |
| 15 TestVoiceSearchProvider::~TestVoiceSearchProvider() {} |
| 16 |
| 17 NSArray* TestVoiceSearchProvider::GetAvailableVoiceSearchLanguages() const { |
| 18 base::scoped_nsobject<VoiceSearchLanguage> en([[VoiceSearchLanguage alloc] |
| 19 initWithIdentifier:@"en-US" |
| 20 displayName:@"English (US)" |
| 21 localizationPreference:nil]); |
| 22 return @[ en ]; |
| 23 } |
| 24 |
| 25 AudioSessionController* TestVoiceSearchProvider::GetAudioSessionController() |
| 26 const { |
| 27 // TODO(rohitrao): Return a TestAudioSessionController once the class with the |
| 28 // same name is removed from the internal tree. |
| 29 return nullptr; |
| 30 } |
| 31 |
| 32 } // namespace ios |
| OLD | NEW |