| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #include "ui/base/ime/chromeos/mock_component_extension_ime_manager_delegate.h" | |
| 6 | |
| 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" | |
| 10 | |
| 11 namespace chromeos { | |
| 12 namespace input_method { | |
| 13 | |
| 14 MockComponentExtIMEManagerDelegate::MockComponentExtIMEManagerDelegate() | |
| 15 : load_call_count_(0), | |
| 16 unload_call_count_(0) { | |
| 17 } | |
| 18 | |
| 19 MockComponentExtIMEManagerDelegate::~MockComponentExtIMEManagerDelegate() { | |
| 20 } | |
| 21 | |
| 22 std::vector<ComponentExtensionIME> | |
| 23 MockComponentExtIMEManagerDelegate::ListIME() { | |
| 24 return ime_list_; | |
| 25 } | |
| 26 | |
| 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_++; | |
| 33 } | |
| 34 | |
| 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; | |
| 40 } | |
| 41 | |
| 42 } // namespace input_method | |
| 43 } // namespace chromeos | |
| OLD | NEW |