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

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

Issue 2432563002: [ios] Adds a provider API for AudioSessionController. (Closed)
Patch Set: Rebased. 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 side-by-side diff with in-line comments
Download patch
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..0e890871d89dc2c791b59d76257eace9a704ffd5
--- /dev/null
+++ b/ios/public/provider/chrome/browser/voice/test_voice_search_provider.mm
@@ -0,0 +1,27 @@
+// 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"
+#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;
+}

Powered by Google App Engine
This is Rietveld 408576698