From c68f6432e5d53cbe6770da889f5a92c791977a67 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 5 Nov 2014 16:27:14 -0600 Subject: Some more action tests --- tests/indicator-fixture.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/indicator-fixture.h') diff --git a/tests/indicator-fixture.h b/tests/indicator-fixture.h index 987c7b7..67cacf3 100644 --- a/tests/indicator-fixture.h +++ b/tests/indicator-fixture.h @@ -260,6 +260,16 @@ class IndicatorFixture : public ::testing::Test return expectActionStateIs(name, var); } + bool expectActionStateIs (const std::string& name, double value) { + GVariant * var = g_variant_new_double(value); + return expectActionStateIs(name, var); + } + + bool expectActionStateIs (const std::string& name, float value) { + GVariant * var = g_variant_new_double(value); + return expectActionStateIs(name, var); + } + private: std::shared_ptr getMenuAttributeVal (int location, std::shared_ptr& menu, const std::string& attribute, std::shared_ptr& value) { -- cgit v1.2.3