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"
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() {
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
;
35 void MockComponentExtIMEManagerDelegate::Unload(Profile
* profile
,
36 const std::string
& extension_id
,
37 const base::FilePath
& path
) {
39 last_unloaded_extension_id_
= extension_id
;
42 } // namespace input_method
43 } // namespace chromeos