summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/ibus/mock_ibus_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromeos/dbus/ibus/mock_ibus_client.cc')
-rw-r--r--chromeos/dbus/ibus/mock_ibus_client.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chromeos/dbus/ibus/mock_ibus_client.cc b/chromeos/dbus/ibus/mock_ibus_client.cc
index bf97086..d185f5f 100644
--- a/chromeos/dbus/ibus/mock_ibus_client.cc
+++ b/chromeos/dbus/ibus/mock_ibus_client.cc
@@ -6,7 +6,9 @@
namespace chromeos {
-MockIBusClient::MockIBusClient() {}
+MockIBusClient::MockIBusClient()
+ : create_input_context_call_count_(0) {
+}
MockIBusClient::~MockIBusClient() {}
@@ -14,6 +16,9 @@ void MockIBusClient::CreateInputContext(
const std::string& client_name,
const CreateInputContextCallback& callback,
const ErrorCallback& error_callback) {
+ create_input_context_call_count_ ++;
+ if (!create_input_context_handler_.is_null())
+ create_input_context_handler_.Run(client_name, callback, error_callback);
}
} // namespace chromeos