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

Side by Side Diff: ui/base/ime/chromeos/mock_component_extension_ime_manager_delegate.cc

Issue 750353004: Revert of Moves code from chromeos/ime to ui/base/ime/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698