Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / base / ime / chromeos / mock_component_extension_ime_manager_delegate.cc
blob82f6c13e5fd8d69e2715c9967e00b208ad4fad95
1 // Copyright 2013 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.
5 #include "ui/base/ime/chromeos/mock_component_extension_ime_manager_delegate.h"
7 #include "base/logging.h"
8 #include "ui/base/ime/chromeos/component_extension_ime_manager.h"
9 #include "ui/base/ime/chromeos/extension_ime_util.h"
11 namespace chromeos {
12 namespace input_method {
14 MockComponentExtIMEManagerDelegate::MockComponentExtIMEManagerDelegate()
15 : load_call_count_(0),
16 unload_call_count_(0) {
19 MockComponentExtIMEManagerDelegate::~MockComponentExtIMEManagerDelegate() {
22 std::vector<ComponentExtensionIME>
23 MockComponentExtIMEManagerDelegate::ListIME() {
24 return ime_list_;
27 void MockComponentExtIMEManagerDelegate::Load(Profile* profile,
28 const std::string& extension_id,
29 const std::string& manifest,
30 const base::FilePath& path) {
31 last_loaded_extension_id_ = extension_id;
32 load_call_count_++;
35 void MockComponentExtIMEManagerDelegate::Unload(Profile* profile,
36 const std::string& extension_id,
37 const base::FilePath& path) {
38 unload_call_count_++;
39 last_unloaded_extension_id_ = extension_id;
42 } // namespace input_method
43 } // namespace chromeos