Skip to content

Testing

Classes

Page
ui::testing::HeadlessTextMeasurer Deterministic, platform-independent text metrics.
ui::testing::HeadlessUI The UI host for tests, with no native window.
ui::testing::HeadlessWindowHost The in-memory window host HeadlessUI installs.
ui::testing::OffscreenCapture Renders a laid-out Window to a Bitmap with the same renderer an on-screen window uses, with no native window and no GPU.
ui::testing::PerfCountScope Takes a snapshot when it is made; elapsed() is the work done since.
ui::testing::TestAutomationEvents AutomationEvents test double: keeps a line of text for every event a window reports, the way a screen reader would hear about it.
ui::testing::TestClipboard An in-memory Clipboard for headless tests.
ui::testing::TestContextMenuHost ContextMenuHost test double: records every menu a control asks to show and answers with a scripted choice instead of opening a popup.
ui::testing::TestJumpListHost JumpListHost test double: touches no jump list, and keeps the tasks it was handed and every recent file.
ui::testing::TestLauncher Launcher test double: launches nothing and records every URI and file it was handed.
ui::testing::TestMessageBoxHost MessageBoxHost test double: shows nothing, records every box it was asked for and answers with answer.
ui::testing::TestNativeHost NativeHost test double: tracks one Entry per native child instead of creating native windows.
ui::testing::TestNotifier Notifier test double: shows nothing, keeps every notification it was handed, and clicks one on request.
ui::testing::TestPrintHost PrintHost test double: shows no dialog and prints to nothing.
ui::testing::TestRenderer Renderer test double that records every draw call as a RenderCommand instead of painting.
ui::testing::TestSpellChecker Deterministic, in-process SpellChecker for headless tests.
ui::testing::WindowSeams Installs platform services on a Window: its host, compositor, native host, spell checker and context-menu host.

Structs

Page
ui::testing::ElementAccess What a test needs from an Element that only its window or container calls in an app.
ui::testing::PerfCounters How much work the library has done so far in this process, counted as it works: layout passes, measures, text layouts created, ticks and so on.
ui::testing::StartupMilestones How long the process took to reach each point on the way to its first frame, counted from process creation.
ui::testing::VisualStates Reads the interaction state a control draws in (Normal, Hover, Pressed, Disabled), which only a test looks at.

Namespaces

Page
ui::testing 31 functions