| 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 #import "ios/public/provider/chrome/browser/voice/voice_search_language.h" |
| 9 |
| 10 TestVoiceSearchProvider::TestVoiceSearchProvider() {} |
| 11 |
| 12 TestVoiceSearchProvider::~TestVoiceSearchProvider() {} |
| 13 |
| 14 NSArray* TestVoiceSearchProvider::GetAvailableLanguages() const { |
| 15 base::scoped_nsobject<VoiceSearchLanguage> en([[VoiceSearchLanguage alloc] |
| 16 initWithIdentifier:@"en-US" |
| 17 displayName:@"English (US)" |
| 18 localizationPreference:nil]); |
| 19 return @[ en ]; |
| 20 } |
| 21 |
| 22 AudioSessionController* TestVoiceSearchProvider::GetAudioSessionController() |
| 23 const { |
| 24 // TODO(rohitrao): Return a TestAudioSessionController once the class with the |
| 25 // same name is removed from the internal tree. |
| 26 return nullptr; |
| 27 } |
| OLD | NEW |