class FakeKeyboardFocusController
Defined at line 20 of file ../../src/ui/bin/virtual_keyboard_manager/tests/fakes/fake_keyboard_focus_controller.h
A fake server for "fuchsia.ui.keyboard.focus.Controller".
It does very little: it can be bound as a server for this protocol, responds with a success on
each call to Notify (the only method), and keeps a count on how many times Notify has been
called.
Public Methods
void FakeKeyboardFocusController ()
Defined at line 16 of file ../../src/ui/bin/virtual_keyboard_manager/tests/fakes/fake_keyboard_focus_controller.cc
void FakeKeyboardFocusController (sys::testing::ComponentContextProvider & context_provider)
Creates a new fake keyboard focus controller. The `context_provider` is used to
connect to the FIDL endpoints needed.
Defined at line 18 of file ../../src/ui/bin/virtual_keyboard_manager/tests/fakes/fake_keyboard_focus_controller.cc
fidl::InterfaceRequestHandler<fuchsia::ui::keyboard::focus::Controller> GetHandler (async_dispatcher_t * dispatcher)
Call to get a working handler for this protocol. It still needs to be exposed as a service.
Defined at line 23 of file ../../src/ui/bin/virtual_keyboard_manager/tests/fakes/fake_keyboard_focus_controller.cc
void ~FakeKeyboardFocusController ()
Defined at line 29 of file ../../src/ui/bin/virtual_keyboard_manager/tests/fakes/fake_keyboard_focus_controller.h
void SetOnNotify (std::function<void (const fuchsia::ui::views::ViewRef &)> on_notify_callback)
Sets a callback to be invoked when a `Notify` call is received. The callback will be passed
the value of the ViewRef that was forwarded.
Defined at line 30 of file ../../src/ui/bin/virtual_keyboard_manager/tests/fakes/fake_keyboard_focus_controller.cc
void Notify (fuchsia::ui::views::ViewRef view_ref, NotifyCallback callback)
Implements `fuchsia.ui.keyboard.focus.Controller.Notify`.
Defined at line 35 of file ../../src/ui/bin/virtual_keyboard_manager/tests/fakes/fake_keyboard_focus_controller.cc
void NotImplemented_ (const std::string & name)
Defined at line 39 of file ../../src/ui/bin/virtual_keyboard_manager/tests/fakes/fake_keyboard_focus_controller.h
zx_koid_t get_last_view_ref_koid ()
Returns the kernel object ID (koid) of the last view ref that was received.
int num_calls ()
Returns the number of calls issued to this fake.
Defined at line 45 of file ../../src/ui/bin/virtual_keyboard_manager/tests/fakes/fake_keyboard_focus_controller.h