class ScenicCtfHlcppTest

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

ScenicCtfHlcppTest 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

TODO(https://fxbug.dev/447603809): DO NOT USE THIS TEST BASE CLASS.

All HLCCP tests, and should be migrated from ScenicCtfHlcppTest to ScenicCtfTest.

Public Methods

void SetUp ()

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

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

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

uint64_t GetDisplayRotation ()

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

default, it returns 0.

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

fuchsia::math::SizeU GetDisplayDimensions ()

Override GetDisplayDimensions() 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 70 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc

uint32_t GetDisplayRefreshRateMillihertz ()

Override GetDisplayRefreshRateMillihertz() 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 74 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc

uint32_t GetDisplayMaxLayerCount ()

Override GetDisplayMaxLayerCount() 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 76 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc

bool UseDisplayComposition ()

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

True by default.

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

void ScenicCtfHlcppTest (fuchsia::ui::test::context::RendererType renderer_type)

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

void ~ScenicCtfHlcppTest ()

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

template <typename Interface>
fidl::SynchronousInterfacePtr<Interface> 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 168 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h

template <typename Interface>
fidl::InterfacePtr<Interface> 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 185 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h