diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-07-22 11:59:03 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-07-22 11:59:03 -0500 |
commit | 584aa80f415597a2970bfd29fa0d48b9a8842086 (patch) | |
tree | 4bead98aa5bec16d74241bf3f48866a29dd3cf99 /tests/test-notify.cc | |
parent | 7ecf18c675f4cc65d6e8314e492dba214ec6ae9c (diff) | |
download | ayatana-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.cc | 4 |
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); } } |