aboutsummaryrefslogtreecommitdiff
path: root/tests/indicator-fixture.h
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2014-11-05 16:27:14 -0600
committerTed Gould <ted@gould.cx>2014-11-05 16:27:14 -0600
commitc68f6432e5d53cbe6770da889f5a92c791977a67 (patch)
treefe04e908c16ddda114fce5c589679d22f0c493a5 /tests/indicator-fixture.h
parent292c19d6e75ee4fa83b71cea3820d0efa6ecc5b0 (diff)
downloadayatana-indicator-sound-c68f6432e5d53cbe6770da889f5a92c791977a67.tar.gz
ayatana-indicator-sound-c68f6432e5d53cbe6770da889f5a92c791977a67.tar.bz2
ayatana-indicator-sound-c68f6432e5d53cbe6770da889f5a92c791977a67.zip
Some more action tests
Diffstat (limited to 'tests/indicator-fixture.h')
-rw-r--r--tests/indicator-fixture.h10
1 files changed, 10 insertions, 0 deletions
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<GVariant> getMenuAttributeVal (int location, std::shared_ptr<GMenuModel>& menu, const std::string& attribute, std::shared_ptr<GVariant>& value) {