Benign repos Download

fl_accessible_text_field_test.cc

imports flutter/shell/platform/embedder/test_utils/proc_table_replacement.himports flutter/shell/platform/linux/fl_accessible_text_field.h
SHA-2566f56a938070f21d5f0416d191427263cc7afa3c1adc1bbdfc1df3126df80fb3a

Evidence

imports flutter/shell/platform/embedder/test_utils/proc_table_replacement.h lines 1–17
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Included first as it collides with the X11 headers.
6#include "gtest/gtest.h"
7
8#include "flutter/shell/platform/embedder/test_utils/proc_table_replacement.h"
9#include "flutter/shell/platform/linux/fl_accessible_text_field.h"
10#include "flutter/shell/platform/linux/fl_engine_private.h"
11#include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_message_codec.h"
12#include "flutter/shell/platform/linux/testing/mock_signal_handler.h"
13
14// MOCK_ENGINE_PROC is leaky by design
15// NOLINTBEGIN(clang-analyzer-core.StackAddressEscape)
16
17static FlValue* decode_semant …
English function-word token "and" lines 24–27
24:37… dates from Flutter emit AtkText::text-insert
25// and AtkText::text-remove signals as expected.
26TEST(FlAccessibleTextFieldTest, SetValue) {
27 g_autop …
English function-word token "for" lines 143–146
143:59… sses the required
144// "expandSelection" argument for semantic cursor move actions.
145TEST(FlAccessibleTextFieldTest, PerformAction) {
146 g_autoptr(GPtr …
C/C++ unit-test EXPECT_EQ marker lines 150–158
150:32… fl_engine_new(project);
151
152 g_autoptr(GError) error = nullptr;
153 EXPECT_TRUE(fl_engine_start(engine, &error));
154 EXPECT_EQ(error, nullptr);
155
156 fl_engine_get_embedder_api(engine)->SendSemanticsAction = MOCK_ENGINE_PROC(
157 SendSemanticsAction,
158 …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.