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

Side by Side Diff: chromeos/ime/mock_ime_property_handler.cc

Issue 23822002: Adding new mock classes for input method handlers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/ime/mock_ime_property_handler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
OLDNEW
« no previous file with comments | « chromeos/ime/mock_ime_property_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698