class TestView
Defined at line 49 of file ../../src/ui/testing/util/test_view.h
Public Methods
void OnStart ()
|component_testing::LocalComponentImpl|
Defined at line 25 of file ../../src/ui/testing/util/test_view.cc
std::optional<zx_koid_t> GetViewRefKoid ()
Defined at line 32 of file ../../src/ui/testing/util/test_view.cc
void TestView (async_dispatcher_t *dispatcher,ContentTypecontent_type,std::weak_ptr<TestViewAccess>access)
Defined at line 70 of file ../../src/ui/testing/util/test_view.h
void ~TestView ()
Defined at line 80 of file ../../src/ui/testing/util/test_view.h
const std::optional<fuchsia::ui::views::ViewRef> & view_ref ()
Defined at line 85 of file ../../src/ui/testing/util/test_view.h
void CreateViewWithViewRef (zx::eventpairtoken,fuchsia::ui::views::ViewRefControlview_ref_control,fuchsia::ui::views::ViewRefview_ref)
Defined at line 90 of file ../../src/ui/testing/util/test_view.h
void CreateView2 (fuchsia::ui::app::CreateView2Args args)
|fuchsia.ui.app.ViewProvider|
Defined at line 143 of file ../../src/ui/testing/util/test_view.cc
void NestChildView ()
Add a child view!
The viewport will have side length of 1/4 our side length and will be centered in our view.
Defined at line 178 of file ../../src/ui/testing/util/test_view.cc
uint32_t width ()
Defined at line 212 of file ../../src/ui/testing/util/test_view.cc
uint32_t height ()
Defined at line 217 of file ../../src/ui/testing/util/test_view.cc
Enumerations
enum class ContentType
| Name | Value | Comments |
|---|---|---|
| DEFAULT | 0 |
Draws a green rect in the view. |
| COORDINATE_GRID | 1 |
Draws the following coordinate test pattern in the view:
___________________________________ |
Defined at line 52 of file ../../src/ui/testing/util/test_view.h