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