class ScenicCtfTest
Defined at line 43 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 SetFlatlandDisplayContent (fuchsia_ui_views::ViewportCreationToken token)
Delegates to the global test environment.
Defined at line 9 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc
const std::shared_ptr<sys::ServiceDirectory> & LocalServiceDirectory ()
Defined at line 14 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 18 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 22 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 26 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 30 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 34 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.cc
void ScenicCtfTest ()
Defined at line 45 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h
void ~ScenicCtfTest ()
Defined at line 46 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h
void SetUp ()
Defined at line 48 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h
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 81 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 89 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 97 of file ../../src/ui/scenic/tests/utils/scenic_ctf_test_base.h