class ScenicCtfHlcppTest
Defined at line 138 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h
TODO(https://fxbug.dev/447603809): DO NOT USE THIS TEST BASE CLASS.
All HLCCP tests, and should be migrated from ScenicCtfHlcppTest to ScenicCtfHlcppTest.
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 ScenicCtfHlcppTest.
Public Methods
void SetUp ()
SetUp connect test realm so test can use realm_proxy_ to access.
Defined at line 66 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc
const std::shared_ptr<sys::ServiceDirectory> & LocalServiceDirectory ()
Defined at line 92 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 96 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 98 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 102 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 104 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 106 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc
void ScenicCtfHlcppTest (fuchsia::ui::test::context::RendererType renderer_type)
Defined at line 140 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h
void ~ScenicCtfHlcppTest ()
Defined at line 143 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 176 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 193 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h