From 3888dd6e7356bf96ad862b65dfd91581335ee369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 10 Jul 2015 16:34:46 +0200 Subject: [PATCH] launch_daemon: Fixed condition tests build. * ConditionContext changed. --- src/tests/servers/launch/ConditionsTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tests/servers/launch/ConditionsTest.cpp b/src/tests/servers/launch/ConditionsTest.cpp index d6ff3296b8..ad9f6f90d6 100644 --- a/src/tests/servers/launch/ConditionsTest.cpp +++ b/src/tests/servers/launch/ConditionsTest.cpp @@ -22,6 +22,8 @@ class TestConditionContext : public ConditionContext { public: bool IsSafeMode() const { return false; } + bool BootVolumeIsReadOnly() const + { return false; } }; @@ -45,7 +47,7 @@ ConditionsTest::TestSafemode() CPPUNIT_ASSERT(!condition->Test(sConditionContext)); CPPUNIT_ASSERT(condition->IsConstant(sConditionContext)); - class SafemodeConditionContext : public ConditionContext { + class SafemodeConditionContext : public TestConditionContext { public: bool IsSafeMode() const { @@ -157,7 +159,7 @@ ConditionsTest::TestNot() Condition* condition = _Condition("not safemode"); CPPUNIT_ASSERT(condition->Test(sConditionContext)); - class SafemodeConditionContext : public ConditionContext { + class SafemodeConditionContext : public TestConditionContext { public: bool IsSafeMode() const {