#include <mock_injector_registry.h>
Definition at line 17 of file mock_injector_registry.h.
◆ MockInjectorRegistry()
flutter_runner::testing::MockInjectorRegistry::MockInjectorRegistry |
( |
fidl::InterfaceRequest< fuchsia::ui::pointerinjector::Registry > |
registry | ) |
|
|
inlineexplicit |
◆ ClearBindings()
void flutter_runner::testing::MockInjectorRegistry::ClearBindings |
( |
| ) |
|
|
inline |
◆ config()
const fuchsia::ui::pointerinjector::Config & flutter_runner::testing::MockInjectorRegistry::config |
( |
| ) |
const |
|
inline |
◆ events()
◆ Inject()
Definition at line 43 of file mock_injector_registry.h.
44 {
45 num_events_received_ +=
events.size();
46
48 events_.push_back(std::move(
event));
49 }
50
52 }
const std::vector< fuchsia::ui::pointerinjector::Event > & events() const
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
◆ num_events_received()
uint32_t flutter_runner::testing::MockInjectorRegistry::num_events_received |
( |
| ) |
const |
|
inline |
◆ num_register_calls()
uint32_t flutter_runner::testing::MockInjectorRegistry::num_register_calls |
( |
| ) |
|
|
inline |
◆ num_registered()
size_t flutter_runner::testing::MockInjectorRegistry::num_registered |
( |
| ) |
|
|
inline |
◆ Register()
void flutter_runner::testing::MockInjectorRegistry::Register |
( |
fuchsia::ui::pointerinjector::Config |
config, |
|
|
fidl::InterfaceRequest< fuchsia::ui::pointerinjector::Device > |
injector, |
|
|
RegisterCallback |
callback |
|
) |
| |
|
inlineoverride |
Definition at line 25 of file mock_injector_registry.h.
28 {
29 num_register_calls_++;
30 const uint32_t id = next_id_++;
31
32 auto [it, success] = bindings_.try_emplace(id, this, std::move(injector));
33
34 it->second.set_error_handler(
35 [this, id](zx_status_t status) { bindings_.erase(id); });
36
37 config_ = std::move(
config);
38
40 }
const fuchsia::ui::pointerinjector::Config & config() const
The documentation for this class was generated from the following file: