TestEmbedderHost
open class TestEmbedderHost(var rootLogger: Logger = TestLogger(), var systemEnvProvider: SystemEnvProvider = SystemEnvProvider { emptyMap() }, var commandArgsProvider: CommandArgsProvider = CommandArgsProvider { emptyList() }, var fileSystem: FileSystem = TestFileSystem(), var monotonicClock: MonotonicClock = object : MonotonicClock {
override fun getTimeMarkNanoseconds(): Long = Long.MAX_VALUE
override fun getResolutionNanoseconds(): Long = 1.milliseconds.inWholeNanoseconds
}, var clock: Clock = object : Clock {
override fun getCurrentTimeEpochNanoseconds(): Long = Long.MAX_VALUE
override fun getResolutionNanoseconds(): Long = 1.milliseconds.inWholeNanoseconds
}, var cputimeSource: CputimeSource = TestCputimeSource(), var localTimeFormatter: LocalTimeFormatter = LocalTimeFormatter {
StructTm(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1)
}, var timeZoneInfoProvider: TimeZoneInfo.Provider = TimeZoneInfo.Provider {
TimeZoneInfo(-1, -1, "Dummy", "Dummy")
}, var entropySource: EntropySource = EntropySource { size ->
ByteArray(size) { 4 }
}) : EmbedderHost(source)
Constructors
Link copied to clipboard
constructor(rootLogger: Logger = TestLogger(), systemEnvProvider: SystemEnvProvider = SystemEnvProvider { emptyMap() }, commandArgsProvider: CommandArgsProvider = CommandArgsProvider { emptyList() }, fileSystem: FileSystem = TestFileSystem(), monotonicClock: MonotonicClock = object : MonotonicClock {
override fun getTimeMarkNanoseconds(): Long = Long.MAX_VALUE
override fun getResolutionNanoseconds(): Long = 1.milliseconds.inWholeNanoseconds
}, clock: Clock = object : Clock {
override fun getCurrentTimeEpochNanoseconds(): Long = Long.MAX_VALUE
override fun getResolutionNanoseconds(): Long = 1.milliseconds.inWholeNanoseconds
}, cputimeSource: CputimeSource = TestCputimeSource(), localTimeFormatter: LocalTimeFormatter = LocalTimeFormatter {
StructTm(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1)
}, timeZoneInfoProvider: TimeZoneInfo.Provider = TimeZoneInfo.Provider {
TimeZoneInfo(-1, -1, "Dummy", "Dummy")
}, entropySource: EntropySource = EntropySource { size ->
ByteArray(size) { 4 }
})