aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-09-21 16:01:33 +0200
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-09-21 16:01:33 +0200
commit22de41f3cc382adbf06be8642af5cfa7ec664c8e (patch)
tree77ad551d928582852a03a6a315051e462a5daf75 /src
parent42d7df585cf61eb64cdb7fc7e171969ce35f6173 (diff)
downloadayatana-indicator-sound-22de41f3cc382adbf06be8642af5cfa7ec664c8e.tar.gz
ayatana-indicator-sound-22de41f3cc382adbf06be8642af5cfa7ec664c8e.tar.bz2
ayatana-indicator-sound-22de41f3cc382adbf06be8642af5cfa7ec664c8e.zip
Added separated integration tests for desktop and phone, with different instances of pulseaudio
Diffstat (limited to 'src')
-rw-r--r--src/gmenuharness/MenuItemMatcher.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gmenuharness/MenuItemMatcher.cpp b/src/gmenuharness/MenuItemMatcher.cpp
index 2280ef5..ab22364 100644
--- a/src/gmenuharness/MenuItemMatcher.cpp
+++ b/src/gmenuharness/MenuItemMatcher.cpp
@@ -354,6 +354,22 @@ MenuItemMatcher& MenuItemMatcher::string_attribute(const string& name, const str
&gvariant_deleter));
}
+MenuItemMatcher& MenuItemMatcher::int32_attribute(const std::string& name, int value)
+{
+ return attribute(
+ name,
+ shared_ptr<GVariant>(g_variant_new_int32 (value),
+ &gvariant_deleter));
+}
+
+MenuItemMatcher& MenuItemMatcher::double_attribute(const std::string& name, double value)
+{
+ return attribute(
+ name,
+ shared_ptr<GVariant>(g_variant_new_double (value),
+ &gvariant_deleter));
+}
+
MenuItemMatcher& MenuItemMatcher::toggled(bool isToggled)
{
p->m_isToggled = make_shared<bool>(isToggled);