MockDeviceVendorInfoLoader class base
Another DeviceVendorInfoLoader that all data are defined already in MockDeviceVendorInfoLoader.new and MockDeviceVendorInfoLoader.simulateDelay.
Since the sources of data no longer come from hardwares, it is preferred to deploy under testing environment. Any implementations done in packages library is discouraged.
- Inheritance
-
- Object
- DeviceVendorInfoLoader
- MockDeviceVendorInfoLoader
- Annotations
Constructors
- MockDeviceVendorInfoLoader(BiosInfo biosInfo, BoardInfo boardInfo, SystemInfo systemInfo)
-
Assign
biosInfo
,boardInfo
andsystemInfo
that it returns identical result to simulate workflow of DeviceVendorInfoLoader. - MockDeviceVendorInfoLoader.simulateDelay(BiosInfo biosInfo, BoardInfo boardInfo, SystemInfo systemInfo, {Duration initialDelay, Duration latestResponse})
-
Assign
biosInfo
,boardInfo
andsystemInfo
with random generated delay for more realistic emulation on fetching data.factory
Properties
-
biosInfo
→ Future<
BiosInfo> -
Extract BIOS information.
no setteroverride
-
boardInfo
→ Future<
BoardInfo> -
Extract motherborad information.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isVirtualPlatform
→ Future<
bool> -
Indicate this host is executed in virtual machine or a container.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
systemInfo
→ Future<
SystemInfo> -
Extract system information.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited