#include <flutter_runner_fakes.h>
Definition at line 13 of file flutter_runner_fakes.h.
◆ MockSemanticsManager()
flutter_runner_test::MockSemanticsManager::MockSemanticsManager |
( |
| ) |
|
|
inline |
◆ CommitCount()
int flutter_runner_test::MockSemanticsManager::CommitCount |
( |
| ) |
const |
|
inline |
◆ CommitUpdates()
void flutter_runner_test::MockSemanticsManager::CommitUpdates |
( |
CommitUpdatesCallback |
callback | ) |
|
|
inlineoverride |
Definition at line 100 of file flutter_runner_fakes.h.
100 {
101 commit_count_++;
102 if (should_hold_commit_response_) {
103 commit_callback_ = std::move(
callback);
104 return;
105 }
107 }
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
◆ DeleteCount()
int flutter_runner_test::MockSemanticsManager::DeleteCount |
( |
| ) |
const |
|
inline |
◆ DeleteOverflowed()
bool flutter_runner_test::MockSemanticsManager::DeleteOverflowed |
( |
| ) |
const |
|
inline |
◆ DeleteSemanticNodes()
void flutter_runner_test::MockSemanticsManager::DeleteSemanticNodes |
( |
std::vector< uint32_t > |
node_ids | ) |
|
|
inlineoverride |
Definition at line 60 of file flutter_runner_fakes.h.
60 {
61 delete_count_++;
62 if (!delete_overflowed_) {
64 sizeof(node_ids) +
66 delete_overflowed_ =
size > ZX_CHANNEL_MAX_MSG_BYTES;
67 }
68 last_deleted_node_ids_ = std::move(node_ids);
69 }
static constexpr size_t kNodeIdSize
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ GetHandler()
fidl::InterfaceRequestHandler< SemanticsManager > flutter_runner_test::MockSemanticsManager::GetHandler |
( |
async_dispatcher_t * |
dispatcher | ) |
|
|
inline |
◆ GetLastEvents()
std::vector< fuchsia::accessibility::semantics::SemanticEvent > & flutter_runner_test::MockSemanticsManager::GetLastEvents |
( |
| ) |
|
|
inline |
◆ InvokeCommitCallback()
void flutter_runner_test::MockSemanticsManager::InvokeCommitCallback |
( |
| ) |
|
|
inline |
◆ LastDeletedNodeIds()
const std::vector< uint32_t > & flutter_runner_test::MockSemanticsManager::LastDeletedNodeIds |
( |
| ) |
const |
|
inline |
◆ LastUpdatedNodes()
const std::vector< fuchsia::accessibility::semantics::Node > & flutter_runner_test::MockSemanticsManager::LastUpdatedNodes |
( |
| ) |
const |
|
inline |
◆ RegisterViewCalled()
bool flutter_runner_test::MockSemanticsManager::RegisterViewCalled |
( |
| ) |
|
|
inline |
◆ RegisterViewForSemantics()
void flutter_runner_test::MockSemanticsManager::RegisterViewForSemantics |
( |
fuchsia::ui::views::ViewRef |
view_ref, |
|
|
fuchsia::accessibility::semantics::SemanticListenerHandle |
handle, |
|
|
fidl::InterfaceRequest< fuchsia::accessibility::semantics::SemanticTree > |
semantic_tree |
|
) |
| |
|
inlineoverride |
Definition at line 20 of file flutter_runner_fakes.h.
24 {
25 tree_binding_.Bind(std::move(semantic_tree));
26 has_view_ref_ = true;
27 }
◆ ResetTree()
void flutter_runner_test::MockSemanticsManager::ResetTree |
( |
| ) |
|
|
inline |
Definition at line 36 of file flutter_runner_fakes.h.
36 {
37 update_count_ = 0;
38 delete_count_ = 0;
39 commit_count_ = 0;
40 last_updated_nodes_.clear();
41 last_deleted_node_ids_.clear();
42 delete_overflowed_ = false;
43 update_overflowed_ = false;
44 }
◆ SendSemanticEvent()
void flutter_runner_test::MockSemanticsManager::SendSemanticEvent |
( |
fuchsia::accessibility::semantics::SemanticEvent |
semantic_event, |
|
|
SendSemanticEventCallback |
callback |
|
) |
| |
|
inlineoverride |
◆ SetShouldHoldCommitResponse()
void flutter_runner_test::MockSemanticsManager::SetShouldHoldCommitResponse |
( |
bool |
value | ) |
|
|
inline |
◆ ShouldHoldCommitResponse()
bool flutter_runner_test::MockSemanticsManager::ShouldHoldCommitResponse |
( |
| ) |
const |
|
inline |
◆ UpdateCount()
int flutter_runner_test::MockSemanticsManager::UpdateCount |
( |
| ) |
const |
|
inline |
◆ UpdateOverflowed()
bool flutter_runner_test::MockSemanticsManager::UpdateOverflowed |
( |
| ) |
const |
|
inline |
◆ UpdateSemanticNodes()
void flutter_runner_test::MockSemanticsManager::UpdateSemanticNodes |
( |
std::vector< fuchsia::accessibility::semantics::Node > |
nodes | ) |
|
|
inlineoverride |
Definition at line 46 of file flutter_runner_fakes.h.
47 {
48 update_count_++;
49 if (!update_overflowed_) {
51 for (const auto& node : nodes) {
53 size +=
sizeof(node.attributes().label().size());
54 }
55 update_overflowed_ =
size > ZX_CHANNEL_MAX_MSG_BYTES;
56 }
57 last_updated_nodes_ = std::move(nodes);
58 }
The documentation for this class was generated from the following file: