| 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 "chromeos/ime/mock_ime_property_handler.h" |
| 6 |
| 7 namespace chromeos { |
| 8 |
| 9 MockIMEPropertyHandler::MockIMEPropertyHandler() |
| 10 : register_properties_call_count_(0) { |
| 11 } |
| 12 |
| 13 MockIMEPropertyHandler::~MockIMEPropertyHandler() { |
| 14 } |
| 15 |
| 16 void MockIMEPropertyHandler::RegisterProperties( |
| 17 const IBusPropertyList& properties) { |
| 18 ++register_properties_call_count_; |
| 19 last_registered_properties_.clear(); |
| 20 last_registered_properties_.resize(properties.size()); |
| 21 for (size_t i = 0; i < properties.size(); ++i) { |
| 22 last_registered_properties_[i] = new IBusProperty(); |
| 23 last_registered_properties_[i]->CopyFrom(*properties[i]); |
| 24 } |
| 25 } |
| 26 |
| 27 void MockIMEPropertyHandler::UpdateProperty(const IBusProperty& property) { |
| 28 } |
| 29 |
| 30 void MockIMEPropertyHandler::Reset() { |
| 31 register_properties_call_count_ = 0; |
| 32 } |
| 33 |
| 34 } // namespace chromeos |
| OLD | NEW |