summaryrefslogtreecommitdiff
path: root/test/test-network.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-22 13:29:15 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-22 13:29:15 +0000
commit8b388c4ee59961f4d307c7f9f87641beffb76a53 (patch)
tree208b2fc38be7b8853fb6b746322301d786eddfe1 /test/test-network.cpp
parentSetHeightOptions surface changed to defaulted pointer (diff)
downloadilt-8b388c4ee59961f4d307c7f9f87641beffb76a53.tar.bz2
ilt-8b388c4ee59961f4d307c7f9f87641beffb76a53.tar.xz
ilt-8b388c4ee59961f4d307c7f9f87641beffb76a53.zip
Expose network base width and surface
Diffstat (limited to 'test/test-network.cpp')
-rw-r--r--test/test-network.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test-network.cpp b/test/test-network.cpp
index ce25429..5373dd5 100644
--- a/test/test-network.cpp
+++ b/test/test-network.cpp
@@ -73,6 +73,18 @@ struct TestNetwork : public NetworkOf<TestLink, TestLinkS> {
render(const SceneShader &) const override
{
}
+
+ const Surface *
+ getBaseSurface() const override
+ {
+ return nullptr;
+ }
+
+ RelativeDistance
+ getBaseWidth() const override
+ {
+ return 5'700;
+ }
};
const auto VALID_NODES = boost::unit_test::data::make<GlobalPosition3D>({