aboutsummaryrefslogtreecommitdiff
path: root/tests/test-notify.cc
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-07-22 11:59:03 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-07-22 11:59:03 -0500
commit584aa80f415597a2970bfd29fa0d48b9a8842086 (patch)
tree4bead98aa5bec16d74241bf3f48866a29dd3cf99 /tests/test-notify.cc
parent7ecf18c675f4cc65d6e8314e492dba214ec6ae9c (diff)
downloadayatana-indicator-power-584aa80f415597a2970bfd29fa0d48b9a8842086.tar.gz
ayatana-indicator-power-584aa80f415597a2970bfd29fa0d48b9a8842086.tar.bz2
ayatana-indicator-power-584aa80f415597a2970bfd29fa0d48b9a8842086.zip
Make the when-does-power-level-change tests work whether or not Ephemeral notifications are being used.
Diffstat (limited to 'tests/test-notify.cc')
-rw-r--r--tests/test-notify.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-notify.cc b/tests/test-notify.cc
index 74a08dc..1fc843e 100644
--- a/tests/test-notify.cc
+++ b/tests/test-notify.cc
@@ -281,11 +281,11 @@ TEST_F(NotifyFixture, LevelsDuringBatteryDrain)
if (old_level == new_level)
{
- EXPECT_EQ (0, changed_params.fields);
+ EXPECT_EQ (0, (changed_params.fields & FIELD_POWER_LEVEL));
}
else
{
- EXPECT_EQ (FIELD_POWER_LEVEL, changed_params.fields);
+ EXPECT_EQ (FIELD_POWER_LEVEL, (changed_params.fields & FIELD_POWER_LEVEL));
EXPECT_EQ (new_level, changed_params.power_level);
}
}