187e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org// Copyright 2014 The Chromium Authors. All rights reserved. 287e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org// Use of this source code is governed by a BSD-style license that can be 387e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org// found in the LICENSE file. 487e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org 587e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org#include "chrome/browser/ui/webui/chromeos/login/l10n_util_test_util.h" 687e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org 787e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org#include <vector> 887e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org 987e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org#include "url/gurl.h" 1087e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org 1187e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.orgnamespace chromeos { 1287e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org 1387e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.orgMockInputMethodManagerWithInputMethods:: 1487e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org MockInputMethodManagerWithInputMethods() { 1587e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org} 1687e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org 1787e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.orgMockInputMethodManagerWithInputMethods:: 1887e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org ~MockInputMethodManagerWithInputMethods() { 1987e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org} 2087e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org 2187e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.orgscoped_ptr<input_method::InputMethodDescriptors> 2287e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.orgMockInputMethodManagerWithInputMethods::GetSupportedInputMethods() const { 2387e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org return scoped_ptr<input_method::InputMethodDescriptors>( 2487e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org new input_method::InputMethodDescriptors(descriptors_)); 2587e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org} 2687e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org 2787e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.orgvoid MockInputMethodManagerWithInputMethods::AddInputMethod( 2887e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org const std::string& id, 2987e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org const std::string& raw_layout, 3087e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org const std::string& language_code) { 3187e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org std::vector<std::string> layouts; 3287e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org layouts.push_back(raw_layout); 3387e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org std::vector<std::string> languages; 3487e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org languages.push_back(language_code); 3587e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org descriptors_.push_back(input_method::InputMethodDescriptor( 3687e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org id, std::string(), std::string(), layouts, languages, true, 3787e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org GURL(), GURL())); 3887e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org} 3987e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org 4087e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org} // namespace chromeos 4187e1f97b7bf06f8554aa27adae4357f81cff3e6bpbos@webrtc.org