Merge lp:~bregma/unity/lp-1430784 into lp:unity

Proposed by Stephen M. Webb
Status: Merged
Approved by: Christopher Townsend
Approved revision: no longer in the source branch.
Merged at revision: 3934
Proposed branch: lp:~bregma/unity/lp-1430784
Merge into: lp:unity
Diff against target: 390 lines (+78/-14)
14 files modified
hud/HudController.cpp (+1/-1)
tests/test_application_launcher_icon.cpp (+6/-1)
tests/test_desktop_application_subject.cpp (+6/-1)
tests/test_glib_dbus_server.cpp (+5/-0)
tests/test_gnome_session_manager.cpp (+6/-1)
tests/test_im_text_entry.cpp (+6/-1)
tests/test_launcher_hide_machine.cpp (+6/-1)
tests/test_launcher_hover_machine.cpp (+5/-0)
tests/test_launcher_icon.cpp (+6/-1)
tests/test_panel_menu_view.cpp (+6/-1)
tests/test_session_button.cpp (+7/-2)
tests/test_session_controller.cpp (+7/-2)
tests/test_software_center_launcher_icon.cpp (+6/-1)
tests/test_switcher_view.cpp (+5/-1)
To merge this branch: bzr merge lp:~bregma/unity/lp-1430784
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+252898@code.launchpad.net

Commit message

silenced GCC 5 warnings

Description of the change

Tweaks to the code to silence new warnings from GCC 5 (which with -Werror cause FTBFS).

Most of the problems are from code generated by Google Test macros resulting in -Wunused-variable warnings. I fixed these by adding #pragma push/pop around the offending macro instantiations in the test code.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

Code looks fine. I'll trust that it compiles now with gcc5 since you would not have proposed this unless it compiled in your pbuilder:)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'hud/HudController.cpp'
--- hud/HudController.cpp 2014-07-11 01:45:49 +0000
+++ hud/HudController.cpp 2015-03-13 14:15:34 +0000
@@ -157,7 +157,7 @@
157 view_->search_activated.connect(sigc::mem_fun(this, &Controller::OnSearchActivated));157 view_->search_activated.connect(sigc::mem_fun(this, &Controller::OnSearchActivated));
158 view_->query_activated.connect(sigc::mem_fun(this, &Controller::OnQueryActivated));158 view_->query_activated.connect(sigc::mem_fun(this, &Controller::OnQueryActivated));
159 view_->query_selected.connect(sigc::mem_fun(this, &Controller::OnQuerySelected));159 view_->query_selected.connect(sigc::mem_fun(this, &Controller::OnQuerySelected));
160 view_->layout_changed.connect(sigc::bind(sigc::mem_fun(this, &Controller::Relayout), nullptr));160 view_->layout_changed.connect(sigc::bind(sigc::mem_fun(this, &Controller::Relayout), false));
161 // Add to the debug introspection.161 // Add to the debug introspection.
162 AddChild(view_);162 AddChild(view_);
163}163}
164164
=== modified file 'tests/test_application_launcher_icon.cpp'
--- tests/test_application_launcher_icon.cpp 2014-03-12 23:44:57 +0000
+++ tests/test_application_launcher_icon.cpp 2015-03-13 14:15:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2012 Canonical Ltd.2 * Copyright 2012,2015 Canonical Ltd.
3 *3 *
4 * This program is free software: you can redistribute it and/or modify it4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published5 * under the terms of the GNU General Public License version 3, as published
@@ -1012,6 +1012,9 @@
1012 virtual ~QuitLabel() {}1012 virtual ~QuitLabel() {}
1013};1013};
10141014
1015#pragma GCC diagnostic push
1016#pragma GCC diagnostic ignored "-Wunused-variable"
1017
1015INSTANTIATE_TEST_CASE_P(TestApplicationLauncherIcon, QuitLabel, testing::Values("Quit", "Exit", "Close"));1018INSTANTIATE_TEST_CASE_P(TestApplicationLauncherIcon, QuitLabel, testing::Values("Quit", "Exit", "Close"));
10161019
1017TEST_P(/*TestApplicationLauncherIcon*/QuitLabel, QuicklistMenuItemRemoteOverridesQuitByLabelNotRunning)1020TEST_P(/*TestApplicationLauncherIcon*/QuitLabel, QuicklistMenuItemRemoteOverridesQuitByLabelNotRunning)
@@ -1059,6 +1062,8 @@
1059 EXPECT_TRUE(cb_called);1062 EXPECT_TRUE(cb_called);
1060}1063}
10611064
1065#pragma GCC diagnostic pop
1066
1062TEST_F(TestApplicationLauncherIcon, QuicklistMenuItemRemoteOverridesQuitByPropertyNotRunning)1067TEST_F(TestApplicationLauncherIcon, QuicklistMenuItemRemoteOverridesQuitByPropertyNotRunning)
1063{1068{
1064 mock_app->SetRunState(false);1069 mock_app->SetRunState(false);
10651070
=== modified file 'tests/test_desktop_application_subject.cpp'
--- tests/test_desktop_application_subject.cpp 2013-09-05 17:50:54 +0000
+++ tests/test_desktop_application_subject.cpp 2015-03-13 14:15:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013,2015 Canonical Ltd.
3 *3 *
4 * This program is free software: you can redistribute it and/or modify it4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published5 * under the terms of the GNU General Public License version 3, as published
@@ -32,6 +32,9 @@
32 ApplicationSubject subject;32 ApplicationSubject subject;
33};33};
3434
35#pragma GCC diagnostic push
36#pragma GCC diagnostic ignored "-Wunused-variable"
37
35struct Property : TestDestkopApplicationSubject, testing::WithParamInterface<std::string> {};38struct Property : TestDestkopApplicationSubject, testing::WithParamInterface<std::string> {};
36INSTANTIATE_TEST_CASE_P(TestDestkopApplicationSubject, Property, testing::Values("Fooo", "Bar", "Unity"));39INSTANTIATE_TEST_CASE_P(TestDestkopApplicationSubject, Property, testing::Values("Fooo", "Bar", "Unity"));
3740
@@ -275,4 +278,6 @@
275 EXPECT_EQ(mock_subject, copy_subject);278 EXPECT_EQ(mock_subject, copy_subject);
276}279}
277280
281#pragma GCC diagnostic pop
282
278} // anonymous namespace283} // anonymous namespace
279284
=== modified file 'tests/test_glib_dbus_server.cpp'
--- tests/test_glib_dbus_server.cpp 2013-03-25 14:48:16 +0000
+++ tests/test_glib_dbus_server.cpp 2015-03-13 14:15:34 +0000
@@ -433,6 +433,9 @@
433 EXPECT_TRUE(signal_got);433 EXPECT_TRUE(signal_got);
434}434}
435435
436#pragma GCC diagnostic push
437#pragma GCC diagnostic ignored "-Wunused-variable"
438
436struct ReadableProperties : TestGLibDBusServerInteractions, testing::WithParamInterface<std::string> {};439struct ReadableProperties : TestGLibDBusServerInteractions, testing::WithParamInterface<std::string> {};
437INSTANTIATE_TEST_CASE_P(TestGLibDBusServerInteractions, ReadableProperties, testing::Values("ReadOnlyProperty", "ReadWriteProperty"));440INSTANTIATE_TEST_CASE_P(TestGLibDBusServerInteractions, ReadableProperties, testing::Values("ReadOnlyProperty", "ReadWriteProperty"));
438441
@@ -510,4 +513,6 @@
510 EXPECT_EQ(value, new_value);513 EXPECT_EQ(value, new_value);
511}514}
512515
516#pragma GCC diagnostic pop
517
513} // Namespace518} // Namespace
514519
=== modified file 'tests/test_gnome_session_manager.cpp'
--- tests/test_gnome_session_manager.cpp 2014-04-06 10:10:41 +0000
+++ tests/test_gnome_session_manager.cpp 2015-03-13 14:15:34 +0000
@@ -1,6 +1,6 @@
1// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-1// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
2/*2/*
3 * Copyright (C) 2013 Canonical Ltd3 * Copyright (C) 2013,2015 Canonical Ltd
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as6 * it under the terms of the GNU General Public License version 3 as
@@ -709,6 +709,9 @@
709 EXPECT_TRUE(cancelled);709 EXPECT_TRUE(cancelled);
710}710}
711711
712#pragma GCC diagnostic push
713#pragma GCC diagnostic ignored "-Wunused-variable"
714
712struct InteractiveMode : TestGnomeSessionManager, testing::WithParamInterface<bool> {};715struct InteractiveMode : TestGnomeSessionManager, testing::WithParamInterface<bool> {};
713INSTANTIATE_TEST_CASE_P(TestGnomeSessionManager, InteractiveMode, testing::Bool());716INSTANTIATE_TEST_CASE_P(TestGnomeSessionManager, InteractiveMode, testing::Bool());
714717
@@ -921,6 +924,8 @@
921 EXPECT_FALSE(cancelled);924 EXPECT_FALSE(cancelled);
922}925}
923926
927#pragma GCC diagnostic pop
928
924TEST_F(TestGnomeSessionManager, ImmediateReboot)929TEST_F(TestGnomeSessionManager, ImmediateReboot)
925{930{
926 EnableInteractiveShutdown(false);931 EnableInteractiveShutdown(false);
927932
=== modified file 'tests/test_im_text_entry.cpp'
--- tests/test_im_text_entry.cpp 2013-11-06 11:21:43 +0000
+++ tests/test_im_text_entry.cpp 2015-03-13 14:15:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2012-2013 Canonical Ltd.2 * Copyright 2012,2013,2015 Canonical Ltd.
3 *3 *
4 * This program is free software: you can redistribute it and/or modify it4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License version 3, as5 * under the terms of the GNU Lesser General Public License version 3, as
@@ -156,6 +156,9 @@
156 EXPECT_EQ(EventNativelyHandled(), text_entry.InspectKeyEvent(selectall));156 EXPECT_EQ(EventNativelyHandled(), text_entry.InspectKeyEvent(selectall));
157}157}
158158
159#pragma GCC diagnostic push
160#pragma GCC diagnostic ignored "-Wunused-variable"
161
159struct CtrlKeybindings : TestIMTextEntry, testing::WithParamInterface<unsigned long> {};162struct CtrlKeybindings : TestIMTextEntry, testing::WithParamInterface<unsigned long> {};
160INSTANTIATE_TEST_CASE_P(TestIMTextEntry, CtrlKeybindings, testing::Values(NUX_VK_a, NUX_VK_BACKSPACE,163INSTANTIATE_TEST_CASE_P(TestIMTextEntry, CtrlKeybindings, testing::Values(NUX_VK_a, NUX_VK_BACKSPACE,
161 NUX_VK_LEFT, NUX_VK_RIGHT,164 NUX_VK_LEFT, NUX_VK_RIGHT,
@@ -168,6 +171,8 @@
168 EXPECT_EQ(EventNativelyHandled(), text_entry.InspectKeyEvent(event));171 EXPECT_EQ(EventNativelyHandled(), text_entry.InspectKeyEvent(event));
169}172}
170173
174#pragma GCC diagnostic pop
175
171TEST_F(TestIMTextEntry, AltKeybindings)176TEST_F(TestIMTextEntry, AltKeybindings)
172{177{
173 for (unsigned long keysym = 0; keysym < XK_umacron; ++keysym)178 for (unsigned long keysym = 0; keysym < XK_umacron; ++keysym)
174179
=== modified file 'tests/test_launcher_hide_machine.cpp'
--- tests/test_launcher_hide_machine.cpp 2013-10-18 18:48:25 +0000
+++ tests/test_launcher_hide_machine.cpp 2015-03-13 14:15:34 +0000
@@ -1,6 +1,6 @@
1// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-1// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
2/*2/*
3 * Copyright (C) 2012 Canonical Ltd3 * Copyright (C) 2012,2015 Canonical Ltd
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as6 * it under the terms of the GNU General Public License version 3 as
@@ -48,6 +48,9 @@
48 ul::LauncherHideMachine machine;48 ul::LauncherHideMachine machine;
49};49};
5050
51#pragma GCC diagnostic push
52#pragma GCC diagnostic ignored "-Wunused-variable"
53
51TEST_P(HideModeNever, Bool2Bool) {54TEST_P(HideModeNever, Bool2Bool) {
52 auto quirk = std::tr1::get<0>(GetParam());55 auto quirk = std::tr1::get<0>(GetParam());
53 bool initial_value = std::tr1::get<1>(GetParam());56 bool initial_value = std::tr1::get<1>(GetParam());
@@ -70,6 +73,8 @@
70INSTANTIATE_TEST_CASE_P(TestLauncherHideMachine, HideModeNever,73INSTANTIATE_TEST_CASE_P(TestLauncherHideMachine, HideModeNever,
71 Combine(ValuesIn(QUIRKS), Bool(), Bool()));74 Combine(ValuesIn(QUIRKS), Bool(), Bool()));
7275
76#pragma GCC diagnostic pop
77
73// TODO: write tests for HideModeAutohide.78// TODO: write tests for HideModeAutohide.
7479
75}80}
7681
=== modified file 'tests/test_launcher_hover_machine.cpp'
--- tests/test_launcher_hover_machine.cpp 2013-10-14 16:59:44 +0000
+++ tests/test_launcher_hover_machine.cpp 2015-03-13 14:15:34 +0000
@@ -32,6 +32,9 @@
32 unity::LauncherHoverMachine::KEY_NAV_ACTIVE,32 unity::LauncherHoverMachine::KEY_NAV_ACTIVE,
33 unity::LauncherHoverMachine::LAUNCHER_IN_ACTION };33 unity::LauncherHoverMachine::LAUNCHER_IN_ACTION };
3434
35#pragma GCC diagnostic push
36#pragma GCC diagnostic ignored "-Wunused-variable"
37
35struct SingleQuirk : public TestWithParam<std::tuple<unity::LauncherHoverMachine::HoverQuirk, bool, bool>> {38struct SingleQuirk : public TestWithParam<std::tuple<unity::LauncherHoverMachine::HoverQuirk, bool, bool>> {
36 unity::LauncherHoverMachine machine;39 unity::LauncherHoverMachine machine;
37};40};
@@ -113,3 +116,5 @@
113 Combine(ValuesIn(QUIRKS), Bool(), Bool(), ValuesIn(QUIRKS), Bool(), Bool()));116 Combine(ValuesIn(QUIRKS), Bool(), Bool(), ValuesIn(QUIRKS), Bool(), Bool()));
114117
115}118}
119
120#pragma GCC diagnostic pop
116121
=== modified file 'tests/test_launcher_icon.cpp'
--- tests/test_launcher_icon.cpp 2014-03-21 04:40:12 +0000
+++ tests/test_launcher_icon.cpp 2015-03-13 14:15:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2012-2013 Canonical Ltd.2 * Copyright 2012,2013,2015 Canonical Ltd.
3 *3 *
4 * This program is free software: you can redistribute it and/or modify it4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published5 * under the terms of the GNU General Public License version 3, as published
@@ -96,6 +96,9 @@
96 return quirks;96 return quirks;
97}97}
9898
99#pragma GCC diagnostic push
100#pragma GCC diagnostic ignored "-Wunused-variable"
101
99struct Quirks : TestLauncherIcon, WithParamInterface<AbstractLauncherIcon::Quirk> {};102struct Quirks : TestLauncherIcon, WithParamInterface<AbstractLauncherIcon::Quirk> {};
100INSTANTIATE_TEST_CASE_P(TestLauncherIcon, Quirks, ValuesIn(GetQuirks()));103INSTANTIATE_TEST_CASE_P(TestLauncherIcon, Quirks, ValuesIn(GetQuirks()));
101104
@@ -285,6 +288,8 @@
285 }288 }
286}289}
287290
291#pragma GCC diagnostic pop
292
288TEST_F(TestLauncherIcon, NeedRedrawInvisibleAllMonitors)293TEST_F(TestLauncherIcon, NeedRedrawInvisibleAllMonitors)
289{294{
290 AbstractLauncherIcon::Ptr icon_ptr(new NiceMock<MockLauncherIcon>());295 AbstractLauncherIcon::Ptr icon_ptr(new NiceMock<MockLauncherIcon>());
291296
=== modified file 'tests/test_panel_menu_view.cpp'
--- tests/test_panel_menu_view.cpp 2015-02-04 10:00:04 +0000
+++ tests/test_panel_menu_view.cpp 2015-03-13 14:15:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2012 Canonical Ltd.2 * Copyright 2012,2015 Canonical Ltd.
3 *3 *
4 * This program is free software: you can redistribute it and/or modify it4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published5 * under the terms of the GNU General Public License version 3, as published
@@ -145,6 +145,9 @@
145 EXPECT_FALSE(menu_view.ShouldDrawMenus());145 EXPECT_FALSE(menu_view.ShouldDrawMenus());
146}146}
147147
148#pragma GCC diagnostic push
149#pragma GCC diagnostic ignored "-Wunused-variable"
150
148struct ProgressTester : TestPanelMenuView, WithParamInterface<double> {};151struct ProgressTester : TestPanelMenuView, WithParamInterface<double> {};
149INSTANTIATE_TEST_CASE_P(TestPanelMenuView, ProgressTester, Range(0.0, 1.0, 0.1));152INSTANTIATE_TEST_CASE_P(TestPanelMenuView, ProgressTester, Range(0.0, 1.0, 0.1));
150153
@@ -185,5 +188,7 @@
185 EXPECT_EQ(max_window->geo(), expected_geo);188 EXPECT_EQ(max_window->geo(), expected_geo);
186}189}
187190
191#pragma GCC diagnostic pop
192
188} // panel namespace193} // panel namespace
189} // unity namespace194} // unity namespace
190195
=== modified file 'tests/test_session_button.cpp'
--- tests/test_session_button.cpp 2013-03-19 14:54:43 +0000
+++ tests/test_session_button.cpp 2015-03-13 14:15:34 +0000
@@ -1,6 +1,6 @@
1// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-1// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
2/*2/*
3 * Copyright (C) 2013 Canonical Ltd3 * Copyright (C) 2013,2015 Canonical Ltd
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as6 * it under the terms of the GNU General Public License version 3 as
@@ -151,6 +151,9 @@
151 Button button;151 Button button;
152};152};
153153
154#pragma GCC diagnostic push
155#pragma GCC diagnostic ignored "-Wunused-variable"
156
154INSTANTIATE_TEST_CASE_P(TestSessionButtonTypes, ActionButton,157INSTANTIATE_TEST_CASE_P(TestSessionButtonTypes, ActionButton,
155 testing::Values(Button::Action::LOCK, Button::Action::LOGOUT, Button::Action::SUSPEND,158 testing::Values(Button::Action::LOCK, Button::Action::LOGOUT, Button::Action::SUSPEND,
156 Button::Action::HIBERNATE, Button::Action::SHUTDOWN, Button::Action::REBOOT));159 Button::Action::HIBERNATE, Button::Action::SHUTDOWN, Button::Action::REBOOT));
@@ -165,5 +168,7 @@
165 EXPECT_EQ(button.action(), GetParam());168 EXPECT_EQ(button.action(), GetParam());
166}169}
167170
171#pragma GCC diagnostic pop
172
168} // session173} // session
169} // unity
170\ No newline at end of file174\ No newline at end of file
175} // unity
171176
=== modified file 'tests/test_session_controller.cpp'
--- tests/test_session_controller.cpp 2014-05-16 03:05:20 +0000
+++ tests/test_session_controller.cpp 2015-03-13 14:15:34 +0000
@@ -1,6 +1,6 @@
1// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-1// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
2/*2/*
3 * Copyright (C) 2013 Canonical Ltd3 * Copyright (C) 2013,2015 Canonical Ltd
4 *4 *
5 * This program is free software: you can redistribute it and/or modify5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as6 * it under the terms of the GNU General Public License version 3 as
@@ -73,6 +73,9 @@
73 color_property.changed.emit(nux::color::RandomColor());73 color_property.changed.emit(nux::color::RandomColor());
74}74}
7575
76#pragma GCC diagnostic push
77#pragma GCC diagnostic ignored "-Wunused-variable"
78
76struct ShowMode : TestSessionController, testing::WithParamInterface<View::Mode> {};79struct ShowMode : TestSessionController, testing::WithParamInterface<View::Mode> {};
77INSTANTIATE_TEST_CASE_P(TestSessionController, ShowMode,80INSTANTIATE_TEST_CASE_P(TestSessionController, ShowMode,
78 testing::Values(View::Mode::SHUTDOWN, View::Mode::LOGOUT, View::Mode::FULL));81 testing::Values(View::Mode::SHUTDOWN, View::Mode::LOGOUT, View::Mode::FULL));
@@ -137,6 +140,8 @@
137 EXPECT_EQ(controller.view_->have_inhibitors(), GetParam());140 EXPECT_EQ(controller.view_->have_inhibitors(), GetParam());
138}141}
139142
143#pragma GCC diagnostic pop
144
140TEST_F(TestSessionController, CancelRequested)145TEST_F(TestSessionController, CancelRequested)
141{146{
142 controller.Show(View::Mode::FULL);147 controller.Show(View::Mode::FULL);
@@ -182,4 +187,4 @@
182}187}
183188
184} // session189} // session
185} // unity
186\ No newline at end of file190\ No newline at end of file
191} // unity
187192
=== modified file 'tests/test_software_center_launcher_icon.cpp'
--- tests/test_software_center_launcher_icon.cpp 2014-02-18 01:20:01 +0000
+++ tests/test_software_center_launcher_icon.cpp 2015-03-13 14:15:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2012 Canonical Ltd.2 * Copyright 2012,2015 Canonical Ltd.
3 *3 *
4 * This program is free software: you can redistribute it and/or modify it4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published5 * under the terms of the GNU General Public License version 3, as published
@@ -243,6 +243,9 @@
243 EXPECT_EQ(PRE_INSTALL_ICON, icon.icon_name());243 EXPECT_EQ(PRE_INSTALL_ICON, icon.icon_name());
244}244}
245245
246#pragma GCC diagnostic push
247#pragma GCC diagnostic ignored "-Wunused-variable"
248
246struct MultiMonitor : TestSoftwareCenterLauncherIcon, WithParamInterface<unsigned> {};249struct MultiMonitor : TestSoftwareCenterLauncherIcon, WithParamInterface<unsigned> {};
247INSTANTIATE_TEST_CASE_P(TestSoftwareCenterLauncherIcon, MultiMonitor, Range<unsigned>(0, monitors::MAX, 1));250INSTANTIATE_TEST_CASE_P(TestSoftwareCenterLauncherIcon, MultiMonitor, Range<unsigned>(0, monitors::MAX, 1));
248251
@@ -292,6 +295,8 @@
292 g_variant_unref(params);295 g_variant_unref(params);
293}296}
294297
298#pragma GCC diagnostic pop
299
295}300}
296301
297}302}
298303
=== modified file 'tests/test_switcher_view.cpp'
--- tests/test_switcher_view.cpp 2014-05-08 04:22:31 +0000
+++ tests/test_switcher_view.cpp 2015-03-13 14:15:34 +0000
@@ -1,5 +1,5 @@
1/*1/*
2 * Copyright 2013 Canonical Ltd.2 * Copyright 2013,2015 Canonical Ltd.
3 *3 *
4 * This program is free software: you can redistribute it and/or modify it4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 3, as published5 * under the terms of the GNU General Public License version 3, as published
@@ -150,6 +150,8 @@
150 EXPECT_DOUBLE_EQ(switcher.GetCurrentProgress(), 1.0f);150 EXPECT_DOUBLE_EQ(switcher.GetCurrentProgress(), 1.0f);
151}151}
152152
153#pragma GCC diagnostic push
154#pragma GCC diagnostic ignored "-Wunused-variable"
153155
154struct AnimationProgress : TestSwitcherView, testing::WithParamInterface<float> {};156struct AnimationProgress : TestSwitcherView, testing::WithParamInterface<float> {};
155INSTANTIATE_TEST_CASE_P(TestSwitcherView, AnimationProgress, testing::Range<float>(0.0, 1.0, 0.1));157INSTANTIATE_TEST_CASE_P(TestSwitcherView, AnimationProgress, testing::Range<float>(0.0, 1.0, 0.1));
@@ -216,5 +218,7 @@
216 }218 }
217}219}
218220
221#pragma GCC diagnostic pop
222
219}223}
220}224}