Chromium Code Reviews| Index: ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm |
| diff --git a/ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm b/ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..db3b348f87c586bc08428a2737f1a7993bf4d266 |
| --- /dev/null |
| +++ b/ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm |
| @@ -0,0 +1,28 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#import "ios/public/provider/chrome/browser/voice/test_voice_search_provider.h" |
| + |
| +#include "base/mac/scoped_nsobject.h" |
| +#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.
|
| +#import "ios/public/provider/chrome/browser/voice/voice_search_language.h" |
| + |
| +TestVoiceSearchProvider::TestVoiceSearchProvider() {} |
| + |
| +TestVoiceSearchProvider::~TestVoiceSearchProvider() {} |
| + |
| +NSArray* TestVoiceSearchProvider::GetAvailableLanguages() const { |
| + base::scoped_nsobject<VoiceSearchLanguage> en([[VoiceSearchLanguage alloc] |
| + initWithIdentifier:@"en-US" |
| + displayName:@"English (US)" |
| + localizationPreference:nil]); |
| + return @[ en ]; |
| +} |
| + |
| +AudioSessionController* TestVoiceSearchProvider::GetAudioSessionController() |
| + const { |
| + // TODO(rohitrao): Return a TestAudioSessionController once the class with the |
| + // same name is removed from the internal tree. |
| + return nullptr; |
| +} |