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

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

Issue 2432563002: [ios] Adds a provider API for AudioSessionController. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698