Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
check_view.h
Go to the documentation of this file.
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#ifndef FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_TESTS_INTEGRATION_UTILS_CHECK_VIEW_H_
6#define FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_TESTS_INTEGRATION_UTILS_CHECK_VIEW_H_
7
8#include <vector>
9
10#include <fuchsia/ui/observation/geometry/cpp/fidl.h>
11#include <zircon/status.h>
12
13namespace fuchsia_test_utils {
14
15/// Returns true if a view with the given |view_ref_koid| exists in a |snapshot|
16/// of the view tree, false otherwise.
18 const fuchsia::ui::observation::geometry::ViewTreeSnapshot& snapshot,
19 zx_koid_t view_ref_koid);
20
21/// Returns true if any of the snapshots of the view tree in |updates| contain a
22/// view with the given |view_ref_koid|, false otherwise.
24 const std::vector<fuchsia::ui::observation::geometry::ViewTreeSnapshot>&
25 updates,
26 zx_koid_t view_ref_koid);
27
28} // namespace fuchsia_test_utils
29
30#endif // FLUTTER_SHELL_PLATFORM_FUCHSIA_FLUTTER_TESTS_INTEGRATION_UTILS_CHECK_VIEW_H_
bool CheckViewExistsInUpdates(const std::vector< fuchsia::ui::observation::geometry::ViewTreeSnapshot > &updates, zx_koid_t view_ref_koid)
Definition check_view.cc:27
bool CheckViewExistsInSnapshot(const fuchsia::ui::observation::geometry::ViewTreeSnapshot &snapshot, zx_koid_t view_ref_koid)
Definition check_view.cc:11