Home · All Classes · Grouped Classes · Annotated · Functions

TestMemoryMonitor Class Reference

The TestMemoryMonitor class provides an instrumented implementation of MemoryMonitor for testing. More...

    #include <TestMemoryMonitor>

Inherits MemoryMonitor.

Additional Inherited Members


Detailed Description

The TestMemoryMonitor class provides an instrumented implementation of MemoryMonitor for testing.

The TestMemoryMonitorTask provides a Qtopia Server Task. Qtopia Server Tasks are documented in full in the QtopiaServerApplication class documentation.

Task NameTestMemoryMonitory
InterfacesMemoryMonitor
ServicesNone

The TestMemoryMonitor allows low memory conditions on the device to be simulated. The TestMemoryMonitor class exposes the following value space items.

ItemPermissionsDescription
/ServerTasks/TestMemoryMonitor/MemoryLevelrwCurrent memory level. Valid values are "Unknown", "Critical", "VeryLow", "Low" and "Normal".
/ServerTasks/TestMemoryMonitor/ChangedTimeroThe date and time at which the memory level last changed.

By setting the MemoryLevel items, test scripts can simulate changes in the system's memory pressure. Only the MemoryLevel item is writable. The ChangedTime item will be updated accordingly each time the memory level changes.

To ensure that the TestMemoryMonitor task is selected as the MemoryMonitor provider, testers should ensure that all other MemoryMonitor providers are either disabled, or that the TestMemoryMonitor is manually started at an appropriately early time.

The TestMemoryMonitor task will fail if it is started before the value space is initialized.

This class is part of the Qtopia server and cannot be used by other Qtopia applications.


Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3