/**
- * Sone - Mocks.kt - Copyright © 2019 David ‘Bombe’ Roden
+ * Sone - Mocks.kt - Copyright © 2019–2020 David ‘Bombe’ Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
import freenet.crypt.*
import freenet.keys.*
import net.pterodactylus.sone.data.*
+import net.pterodactylus.sone.data.SoneOptions.*
import net.pterodactylus.sone.data.impl.*
import net.pterodactylus.sone.text.*
import net.pterodactylus.sone.utils.*
fun createId() = InsertableClientSSK.createRandom(DummyRandomSource(), "").uri.routingKey.asFreenetBase64
fun createLocalSone(id: String? = createId()) = object : IdOnlySone(id) {
+ private val options = DefaultSoneOptions()
+ override fun getOptions() = options
override fun isLocal() = true
}
fun createRemoteSone(id: String? = createId()) = IdOnlySone(id)