Benign repos Download

text-input-test.cc

imports flutter/shell/platform/fuchsia/flutter/tests/integration/utils/check_view.himports flutter/shell/platform/fuchsia/flutter/tests/integration/utils/portable_ui_test.h
SHA-256693d0a148a74c34ff2b656b9154e652e6b511d248a983bf38ce71ba3084b8e5a

Evidence

imports flutter/shell/platform/fuchsia/flutter/tests/integration/utils/check_view.h lines 1–43
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#include <fuchsia/feedback/cpp/fidl.h>
6#include <fuchsia/logger/cpp/fidl.h>
7#include <fuchsia/sysmem/cpp/fidl.h>
8#include <fuchsia/tracing/provider/cpp/fidl.h>
9#include <fuchsia/ui/app/cpp/fidl.h>
10#include <fuchsia/ui/display/singleton/cpp/fidl.h>
11#include <fuchsia/ui/input/cpp/fidl.h>
12#include <fuchsia/ui/test/input/cpp/fidl.h>
13#include <fuchsia/ui/test/scene/cpp/fidl.h>
14#include <lib/async-loop/testing/cpp/real_loop.h>
15#include <lib/async/cpp/task.h>
16#include <lib/fidl/cpp/binding_set.h>
17#include <lib/sys/component/cpp/testing/realm_builder.h>
18#include <lib/sys/component/cpp/testing/realm_builder_types.h>
19#include <lib/zx/clock.h>
20#include <lib/zx/time.h>
21#include <zircon/status.h>
22#include <zircon/types.h>
23#include <zircon/utc.h>
24
25#include <cstddef>
26#include <cstdint>
27#include <iostream>
28#include <memory>
29#include <type_traits>
30#include <utility>
31#include <vector>
32
33#include <gtest/gtest.h>
34
35#include "flutter/fml/logging.h"
36#include "flutter/shell/platform/fuchsia/flutter/tests/integration/utils/check_view.h"
37#include "flutter/shell/platform/fuchsia/flutter/tests/integration/utils/portable_ui_test.h"
38
39namespace {
40
41// Types imported for the realm_builder library.
42using component_testing::ChildRef;
43using component_testing::LocalCom …
C/C++ unit-test ASSERT_EQ marker lines 92–97
92:2… FML_LOG(INFO) << "Starting KeyboardInputListenerServer";
93 ASSERT_EQ(ZX_OK, outgoing()->AddPublicService(
94 bindings_.GetHandler(this, dispatcher_)));
95 }
96
97 /// Returns tru …
English function-word token "and" lines 103–106
103:43…
104 // Corresponding indices for response_list and expected should contain the
105 // same values
106 for (size_t i = 0; i < expected.size(); ++i) …
English function-word token "have" lines 177–180
177:27… nding realm";
178 // Key part of service setup: have this test component vend the
179 // |KeyboardInputListener| service in the constructed realm.
180 …

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.