Add kSupportedVersion constant to net::websockets
[chromium-blink-merge.git] / chromeos / ime / mock_component_extension_ime_manager_delegate.cc
blobee075af982ec531135876ec3e600ed066b8c2259
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 "base/logging.h"
6 #include "chromeos/ime/component_extension_ime_manager.h"
7 #include "chromeos/ime/extension_ime_util.h"
8 #include "chromeos/ime/mock_component_extension_ime_manager_delegate.h"
10 namespace chromeos {
11 namespace input_method {
13 MockComponentExtIMEManagerDelegate::MockComponentExtIMEManagerDelegate()
14 : load_call_count_(0),
15 unload_call_count_(0) {
18 MockComponentExtIMEManagerDelegate::~MockComponentExtIMEManagerDelegate() {
21 std::vector<ComponentExtensionIME>
22 MockComponentExtIMEManagerDelegate::ListIME() {
23 return ime_list_;
26 bool MockComponentExtIMEManagerDelegate::Load(const std::string& extension_id,
27 const std::string& manifest,
28 const base::FilePath& path) {
29 last_loaded_extension_id_ = extension_id;
30 load_call_count_++;
31 return true;
34 bool MockComponentExtIMEManagerDelegate::Unload(const std::string& extension_id,
35 const base::FilePath& path) {
36 unload_call_count_++;
37 last_unloaded_extension_id_ = extension_id;
38 return false;
41 } // namespace input_method
42 } // namespace chromeos