| Index: chromeos/dbus/ibus/mock_ibus_engine_service.h
|
| diff --git a/chromeos/dbus/ibus/mock_ibus_engine_service.h b/chromeos/dbus/ibus/mock_ibus_engine_service.h
|
| deleted file mode 100644
|
| index 5d33246c725c85bf6f6efaca04050939f55e102f..0000000000000000000000000000000000000000
|
| --- a/chromeos/dbus/ibus/mock_ibus_engine_service.h
|
| +++ /dev/null
|
| @@ -1,94 +0,0 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#ifndef CHROMEOS_DBUS_IBUS_MOCK_IBUS_ENGINE_SERVICE_H_
|
| -#define CHROMEOS_DBUS_IBUS_MOCK_IBUS_ENGINE_SERVICE_H_
|
| -
|
| -#include <string>
|
| -#include "chromeos/dbus/ibus/ibus_engine_service.h"
|
| -#include "chromeos/dbus/ibus/ibus_text.h"
|
| -
|
| -namespace chromeos {
|
| -
|
| -class IBusText;
|
| -
|
| -class MockIBusEngineService : public IBusEngineService {
|
| - public:
|
| -
|
| - struct UpdatePreeditArg {
|
| - UpdatePreeditArg() : is_visible(false) {}
|
| - IBusText ibus_text;
|
| - uint32 cursor_pos;
|
| - bool is_visible;
|
| - };
|
| -
|
| - struct UpdateAuxiliaryTextArg {
|
| - UpdateAuxiliaryTextArg() : is_visible(false) {}
|
| - IBusText ibus_text;
|
| - bool is_visible;
|
| - };
|
| -
|
| - struct DeleteSurroundingTextArg {
|
| - int32 offset;
|
| - uint32 length;
|
| - };
|
| -
|
| - MockIBusEngineService();
|
| - virtual ~MockIBusEngineService();
|
| -
|
| - // IBusEngineService overrides.
|
| - virtual void SetEngine(IBusEngineHandlerInterface* handler) OVERRIDE;
|
| - virtual void UnsetEngine(IBusEngineHandlerInterface* handler) OVERRIDE;
|
| - virtual void UpdatePreedit(const IBusText& ibus_text,
|
| - uint32 cursor_pos,
|
| - bool is_visible,
|
| - IBusEnginePreeditFocusOutMode mode) OVERRIDE;
|
| - virtual void UpdateAuxiliaryText(const IBusText& ibus_text,
|
| - bool is_visible) OVERRIDE;
|
| - virtual void ForwardKeyEvent(uint32 keyval, uint32 keycode,
|
| - uint32 state) OVERRIDE;
|
| - virtual void RequireSurroundingText() OVERRIDE;
|
| - virtual void DeleteSurroundingText(int32 offset, uint32 length) OVERRIDE;
|
| -
|
| - IBusEngineHandlerInterface* GetEngine() const;
|
| -
|
| - void Clear();
|
| -
|
| - int update_preedit_call_count() const { return update_preedit_call_count_; }
|
| - const UpdatePreeditArg& last_update_preedit_arg() const {
|
| - return *last_update_preedit_arg_.get();
|
| - }
|
| -
|
| - int update_auxiliary_text_call_count() const {
|
| - return update_auxiliary_text_call_count_;
|
| - }
|
| - const UpdateAuxiliaryTextArg& last_update_aux_text_arg() const {
|
| - return *last_update_aux_text_arg_.get();
|
| - }
|
| -
|
| - int delete_surrounding_text_call_count() const {
|
| - return delete_surrounding_text_call_count_;
|
| - }
|
| - const DeleteSurroundingTextArg& last_delete_surrounding_text_arg() const {
|
| - return *last_delete_surrounding_text_arg_.get();
|
| - }
|
| -
|
| - private:
|
| - int update_preedit_call_count_;
|
| - int update_auxiliary_text_call_count_;
|
| - int forward_key_event_call_count_;
|
| - int delete_surrounding_text_call_count_;
|
| -
|
| - scoped_ptr<UpdatePreeditArg> last_update_preedit_arg_;
|
| - scoped_ptr<UpdateAuxiliaryTextArg> last_update_aux_text_arg_;
|
| - scoped_ptr<DeleteSurroundingTextArg> last_delete_surrounding_text_arg_;
|
| -
|
| - IBusEngineHandlerInterface* current_engine_;
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(MockIBusEngineService);
|
| -};
|
| -
|
| -} // namespace chromeos
|
| -
|
| -#endif // CHROMEOS_DBUS_IBUS_MOCK_IBUS_ENGINE_SERVICE_H_
|
|
|