From 545b34108a6752c6a6554f4bda1cafda79e8aabe Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 16 Jun 2013 23:32:58 -0500 Subject: first steps at fixing the tests that broke during GMenuification --- tests/test-device.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/test-device.cc') diff --git a/tests/test-device.cc b/tests/test-device.cc index ab329f1..9c48699 100644 --- a/tests/test-device.cc +++ b/tests/test-device.cc @@ -17,9 +17,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include #include #include "device.h" -#include "indicator-power.h" +#include "service.h" class DeviceTest : public ::testing::Test { @@ -597,11 +598,11 @@ TEST_F(DeviceTest, ChoosePrimary) INDICATOR_POWER_DEVICE_TIME, guint64(tests[j].time), INDICATOR_POWER_DEVICE_PERCENTAGE, tests[j].percentage, NULL); - ASSERT_EQ (a, indicator_power_choose_primary_device(device_list)); + ASSERT_EQ (a, indicator_power_service_choose_primary_device(device_list)); /* reverse the list to check that list order doesn't matter */ device_list = g_slist_reverse (device_list); - ASSERT_EQ (a, indicator_power_choose_primary_device(device_list)); + ASSERT_EQ (a, indicator_power_service_choose_primary_device(device_list)); } } -- cgit v1.2.3