class ScenicCtfTest

Defined at line 42 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h

ScenicCtfTest use realm_proxy to connect scenic test realm.

The scenic test realm consists of three components:

* Scenic

* Fake Cobalt

* Fake Display Provider

topology as follows:

test_manager

|

<test

component>

|

<

- Test realm

----------------------------

<

- realm_proxy

/ |

\

<

- Scenic realm

Scenic Cobalt Hdcp

Public Methods

void SetUp ()

SetUp connect test realm so test can use realm_proxy_ to access.

Defined at line 9 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc

void ScenicCtfTest (fuchsia_ui_test_context::RendererType renderer_type)

Defined at line 44 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h

void ~ScenicCtfTest ()

Defined at line 47 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h

const std::shared_ptr<sys::ServiceDirectory> & LocalServiceDirectory ()

Defined at line 52 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc

uint64_t DisplayRotation ()

Override DisplayRotation() to provide fuchsia.scenic.DisplayRotation to test realm. By

default, it returns 0.

Defined at line 56 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc

fuchsia_math::SizeU DisplayDimensions ()

Overrides DisplayDimensions() to provide `active_width_px` and `active_height_px` to

fake-display-stack-host in the test realm. If {0, 0}, the default value will be used.

By default, it returns {0, 0};

`width` and `height` must be both non-zero or both zero.

Defined at line 58 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc

uint32_t DisplayRefreshRateMillihertz ()

Overrides DisplayRefreshRateMillihertz() to provide `refresh_rate_millihertz` to

fake-display-stack-host. If zero, the default value will be used. By default it returns zero.

Defined at line 60 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc

uint32_t DisplayMaxLayerCount ()

Overrides DisplayMaxLayerCount() to provide `max_layer_count` to

fake-display-stack-host. If zero, the default value will be used. By default it returns zero.

Defined at line 62 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc

bool DisplayComposition ()

Override DisplayComposition() to provide fuchsia.scenic.DisplayComposition to test realm. True

by default.

Defined at line 64 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc

template <typename Protocol>
fidl::SyncClient<Protocol> ConnectSyncIntoRealm (const std::string & service_path)

Connect to the FIDL protocol which served from the realm proxy use default served path if no

name passed in.

Defined at line 80 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h

template <typename Protocol>
fidl::Client<Protocol> ConnectAsyncIntoRealm (const std::string & service_path)

Connect to the FIDL protocol which served from the realm proxy use default served path if no

name passed in.

Defined at line 88 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h

template <typename Protocol>
fidl::ClientEnd<Protocol> ConnectIntoRealm (const std::string & service_path)

Connect to the FIDL protocol which served from the realm proxy use default served path if no

name passed in.

Defined at line 96 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h