From 4a6ec712275b179decd1844232dce44bc9f9dc19 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 8 Dec 2017 10:37:30 +0000 Subject: Many more C++ namespace name changes (unity -> ayatana). --- tests/actions-mock.h | 4 ++-- tests/manual-test-snap.cpp | 6 +++--- tests/planner-mock.h | 4 ++-- tests/print-to.h | 4 ++-- tests/state-fixture.h | 4 ++-- tests/state-mock.h | 4 ++-- tests/test-actions.cpp | 2 +- tests/test-alarm-queue.cpp | 2 +- tests/test-clock.cpp | 2 +- tests/test-datetime.cpp | 2 +- tests/test-eds-ics-all-day-events.cpp | 2 +- tests/test-eds-ics-missing-trigger.cpp | 2 +- tests/test-eds-ics-nonrepeating-events.cpp | 2 +- tests/test-eds-ics-repeating-events.cpp | 2 +- tests/test-eds-ics-repeating-valarms.cpp | 2 +- tests/test-eds-ics-tzids-2.cpp | 2 +- tests/test-eds-ics-tzids.cpp | 2 +- tests/test-exporter.cpp | 2 +- tests/test-formatter.cpp | 2 +- tests/test-locations.cpp | 10 +++++----- tests/test-menus.cpp | 2 +- tests/test-planner.cpp | 2 +- tests/test-settings.cpp | 2 +- tests/test-snap.cpp | 12 ++++++------ tests/test-timezone-geoclue.cpp | 2 +- tests/test-timezone-timedated.cpp | 2 +- tests/test-timezones.cpp | 2 +- tests/timedated-fixture.h | 4 ++-- tests/timezone-mock.h | 4 ++-- tests/wakeup-timer-mock.h | 4 ++-- 30 files changed, 49 insertions(+), 49 deletions(-) (limited to 'tests') diff --git a/tests/actions-mock.h b/tests/actions-mock.h index 9421708..59a0912 100644 --- a/tests/actions-mock.h +++ b/tests/actions-mock.h @@ -24,7 +24,7 @@ #include -namespace unity { +namespace ayatana { namespace indicator { namespace datetime { @@ -105,6 +105,6 @@ private: } // namespace datetime } // namespace indicator -} // namespace unity +} // namespace ayatana #endif // INDICATOR_DATETIME_ACTIONS_MOCK_H diff --git a/tests/manual-test-snap.cpp b/tests/manual-test-snap.cpp index d04cf14..95775c8 100644 --- a/tests/manual-test-snap.cpp +++ b/tests/manual-test-snap.cpp @@ -26,9 +26,9 @@ #include -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; -namespace uin = unity::indicator::notifications; +namespace ain = ayatana::indicator::notifications; /*** **** @@ -91,7 +91,7 @@ int main(int argc, const char* argv[]) auto settings = std::make_shared(); settings->alarm_volume.set(volume); - auto notification_engine = std::make_shared("indicator-datetime-service"); + auto notification_engine = std::make_shared("indicator-datetime-service"); Snap snap (notification_engine, settings); snap(a, a.alarms.front(), on_snooze, on_ok); g_main_loop_run(loop); diff --git a/tests/planner-mock.h b/tests/planner-mock.h index 53109cf..a324bd4 100644 --- a/tests/planner-mock.h +++ b/tests/planner-mock.h @@ -22,7 +22,7 @@ #include -namespace unity { +namespace ayatana { namespace indicator { namespace datetime { @@ -51,6 +51,6 @@ private: } // namespace datetime } // namespace indicator -} // namespace unity +} // namespace ayatana #endif // INDICATOR_DATETIME_PLANNER_MOCK_H diff --git a/tests/print-to.h b/tests/print-to.h index 357925f..19367ac 100644 --- a/tests/print-to.h +++ b/tests/print-to.h @@ -24,7 +24,7 @@ #include -namespace unity { +namespace ayatana { namespace indicator { namespace datetime { @@ -73,6 +73,6 @@ PrintTo(const Appointment& appointment, std::ostream* os) } // namespace datetime } // namespace indicator -} // namespace unity +} // namespace ayatana #endif diff --git a/tests/state-fixture.h b/tests/state-fixture.h index 341df8b..e450735 100644 --- a/tests/state-fixture.h +++ b/tests/state-fixture.h @@ -25,7 +25,7 @@ #include "actions-mock.h" #include "state-mock.h" -namespace unity { +namespace ayatana { namespace indicator { namespace datetime { @@ -77,6 +77,6 @@ protected: } // namespace datetime } // namespace indicator -} // namespace unity +} // namespace ayatana #endif /* INDICATOR_DATETIME_TESTS_STATE_FIXTURE_H */ diff --git a/tests/state-mock.h b/tests/state-mock.h index caa6393..3a0b95f 100644 --- a/tests/state-mock.h +++ b/tests/state-mock.h @@ -25,7 +25,7 @@ #include #include -namespace unity { +namespace ayatana { namespace indicator { namespace datetime { @@ -62,6 +62,6 @@ public: } // namespace datetime } // namespace indicator -} // namespace unity +} // namespace ayatana #endif /* INDICATOR_DATETIME_STATE_MOCK_H */ diff --git a/tests/test-actions.cpp b/tests/test-actions.cpp index 2a8e370..7899d15 100644 --- a/tests/test-actions.cpp +++ b/tests/test-actions.cpp @@ -21,7 +21,7 @@ #include "state-fixture.h" -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; class ActionsFixture: public StateFixture { diff --git a/tests/test-alarm-queue.cpp b/tests/test-alarm-queue.cpp index aa35668..42edf74 100644 --- a/tests/test-alarm-queue.cpp +++ b/tests/test-alarm-queue.cpp @@ -24,7 +24,7 @@ #include "state-fixture.h" -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; class AlarmQueueFixture: public StateFixture { diff --git a/tests/test-clock.cpp b/tests/test-clock.cpp index 5601d35..c1d91da 100644 --- a/tests/test-clock.cpp +++ b/tests/test-clock.cpp @@ -30,7 +30,7 @@ **** ***/ -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; class ClockFixture: public TestDBusFixture { diff --git a/tests/test-datetime.cpp b/tests/test-datetime.cpp index 41f78fb..8e75e73 100644 --- a/tests/test-datetime.cpp +++ b/tests/test-datetime.cpp @@ -21,7 +21,7 @@ #include "glib-fixture.h" -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; /*** **** diff --git a/tests/test-eds-ics-all-day-events.cpp b/tests/test-eds-ics-all-day-events.cpp index 0d3173d..8e7eff7 100644 --- a/tests/test-eds-ics-all-day-events.cpp +++ b/tests/test-eds-ics-all-day-events.cpp @@ -31,7 +31,7 @@ #include "timezone-mock.h" #include "wakeup-timer-mock.h" -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; using VAlarmFixture = GlibFixture; /*** diff --git a/tests/test-eds-ics-missing-trigger.cpp b/tests/test-eds-ics-missing-trigger.cpp index 4a26181..2b53c31 100644 --- a/tests/test-eds-ics-missing-trigger.cpp +++ b/tests/test-eds-ics-missing-trigger.cpp @@ -31,7 +31,7 @@ #include "timezone-mock.h" #include "wakeup-timer-mock.h" -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; using VAlarmFixture = GlibFixture; /*** diff --git a/tests/test-eds-ics-nonrepeating-events.cpp b/tests/test-eds-ics-nonrepeating-events.cpp index 819c422..6b92846 100644 --- a/tests/test-eds-ics-nonrepeating-events.cpp +++ b/tests/test-eds-ics-nonrepeating-events.cpp @@ -31,7 +31,7 @@ #include "timezone-mock.h" #include "wakeup-timer-mock.h" -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; using VAlarmFixture = GlibFixture; /*** diff --git a/tests/test-eds-ics-repeating-events.cpp b/tests/test-eds-ics-repeating-events.cpp index 92ef15c..76a708d 100644 --- a/tests/test-eds-ics-repeating-events.cpp +++ b/tests/test-eds-ics-repeating-events.cpp @@ -31,7 +31,7 @@ #include "timezone-mock.h" #include "wakeup-timer-mock.h" -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; using VAlarmFixture = GlibFixture; /*** diff --git a/tests/test-eds-ics-repeating-valarms.cpp b/tests/test-eds-ics-repeating-valarms.cpp index 47f29e7..0ce1433 100644 --- a/tests/test-eds-ics-repeating-valarms.cpp +++ b/tests/test-eds-ics-repeating-valarms.cpp @@ -31,7 +31,7 @@ #include "timezone-mock.h" #include "wakeup-timer-mock.h" -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; using VAlarmFixture = GlibFixture; /*** diff --git a/tests/test-eds-ics-tzids-2.cpp b/tests/test-eds-ics-tzids-2.cpp index 8b4e80b..c0572d0 100644 --- a/tests/test-eds-ics-tzids-2.cpp +++ b/tests/test-eds-ics-tzids-2.cpp @@ -31,7 +31,7 @@ #include "timezone-mock.h" #include "wakeup-timer-mock.h" -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; using VAlarmFixture = GlibFixture; /*** diff --git a/tests/test-eds-ics-tzids.cpp b/tests/test-eds-ics-tzids.cpp index 02a152b..41d8214 100644 --- a/tests/test-eds-ics-tzids.cpp +++ b/tests/test-eds-ics-tzids.cpp @@ -31,7 +31,7 @@ #include "timezone-mock.h" #include "wakeup-timer-mock.h" -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; using VAlarmFixture = GlibFixture; /*** diff --git a/tests/test-exporter.cpp b/tests/test-exporter.cpp index d5118ac..bc8c70a 100644 --- a/tests/test-exporter.cpp +++ b/tests/test-exporter.cpp @@ -30,7 +30,7 @@ #include #include -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; class ExporterFixture: public GlibFixture { diff --git a/tests/test-formatter.cpp b/tests/test-formatter.cpp index 75c5600..e9aa4e9 100644 --- a/tests/test-formatter.cpp +++ b/tests/test-formatter.cpp @@ -29,7 +29,7 @@ #include #include -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; /*** **** diff --git a/tests/test-locations.cpp b/tests/test-locations.cpp index 61a6ffd..8a4cdfa 100644 --- a/tests/test-locations.cpp +++ b/tests/test-locations.cpp @@ -23,11 +23,11 @@ #include -using unity::indicator::datetime::Location; -using unity::indicator::datetime::Locations; -using unity::indicator::datetime::Settings; -using unity::indicator::datetime::SettingsLocations; -using unity::indicator::datetime::Timezones; +using ayatana::indicator::datetime::Location; +using ayatana::indicator::datetime::Locations; +using ayatana::indicator::datetime::Settings; +using ayatana::indicator::datetime::SettingsLocations; +using ayatana::indicator::datetime::Timezones; /*** **** diff --git a/tests/test-menus.cpp b/tests/test-menus.cpp index fb9c50a..6e88b7b 100644 --- a/tests/test-menus.cpp +++ b/tests/test-menus.cpp @@ -28,7 +28,7 @@ #include -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; class MenuFixture: public StateFixture { diff --git a/tests/test-planner.cpp b/tests/test-planner.cpp index 1e8ac66..760eab5 100644 --- a/tests/test-planner.cpp +++ b/tests/test-planner.cpp @@ -29,7 +29,7 @@ #include #include -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; /*** **** diff --git a/tests/test-settings.cpp b/tests/test-settings.cpp index 44037f7..26acaa4 100644 --- a/tests/test-settings.cpp +++ b/tests/test-settings.cpp @@ -22,7 +22,7 @@ #include #include -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; /*** **** diff --git a/tests/test-snap.cpp b/tests/test-snap.cpp index 06447a8..7559802 100644 --- a/tests/test-snap.cpp +++ b/tests/test-snap.cpp @@ -32,7 +32,7 @@ #include // getuid() #include // getuid() -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; #include "glib-fixture.h" @@ -45,7 +45,7 @@ namespace static constexpr char const * APP_NAME {"indicator-datetime-service"}; } -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; class SnapFixture: public GlibFixture { @@ -380,7 +380,7 @@ TEST_F(SnapFixture, InteractiveDuration) static constexpr int duration_minutes = 120; auto settings = std::make_shared(); settings->alarm_duration.set(duration_minutes); - auto ne = std::make_shared(APP_NAME); + auto ne = std::make_shared(APP_NAME); Snap snap (ne, settings); make_interactive(); @@ -430,7 +430,7 @@ TEST_F(SnapFixture, InteractiveDuration) TEST_F(SnapFixture, InhibitSleep) { auto settings = std::make_shared(); - auto ne = std::make_shared(APP_NAME); + auto ne = std::make_shared(APP_NAME); auto snap = new Snap (ne, settings); make_interactive(); @@ -485,7 +485,7 @@ TEST_F(SnapFixture, InhibitSleep) TEST_F(SnapFixture, ForceScreen) { auto settings = std::make_shared(); - auto ne = std::make_shared(APP_NAME); + auto ne = std::make_shared(APP_NAME); auto snap = new Snap (ne, settings); make_interactive(); @@ -526,7 +526,7 @@ TEST_F(SnapFixture, ForceScreen) TEST_F(SnapFixture,Vibrate) { auto settings = std::make_shared(); - auto ne = std::make_shared(APP_NAME); + auto ne = std::make_shared(APP_NAME); auto func = [this](const Appointment&, const Alarm&){g_idle_add(quit_idle, loop);}; GError * error = nullptr; diff --git a/tests/test-timezone-geoclue.cpp b/tests/test-timezone-geoclue.cpp index 3cc1393..c520409 100644 --- a/tests/test-timezone-geoclue.cpp +++ b/tests/test-timezone-geoclue.cpp @@ -21,7 +21,7 @@ #include -using unity::indicator::datetime::GeoclueTimezone; +using ayatana::indicator::datetime::GeoclueTimezone; // This test looks small because the interesting // work is all happening in GeoclueFixture... diff --git a/tests/test-timezone-timedated.cpp b/tests/test-timezone-timedated.cpp index 7300649..2fdec12 100644 --- a/tests/test-timezone-timedated.cpp +++ b/tests/test-timezone-timedated.cpp @@ -22,7 +22,7 @@ #include -using unity::indicator::datetime::TimedatedTimezone; +using ayatana::indicator::datetime::TimedatedTimezone; /*** **** diff --git a/tests/test-timezones.cpp b/tests/test-timezones.cpp index 9e5c9cf..362fcf7 100644 --- a/tests/test-timezones.cpp +++ b/tests/test-timezones.cpp @@ -27,7 +27,7 @@ #include // fopen() #include // sync() -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; typedef GeoclueFixture TimezonesFixture; diff --git a/tests/timedated-fixture.h b/tests/timedated-fixture.h index 5ec425d..00269e0 100644 --- a/tests/timedated-fixture.h +++ b/tests/timedated-fixture.h @@ -25,7 +25,7 @@ #include "state-mock.h" #include "glib-fixture.h" -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; class MockLiveActions: public LiveActions { @@ -44,7 +44,7 @@ protected: **** ***/ -using namespace unity::indicator::datetime; +using namespace ayatana::indicator::datetime; class TimedateFixture: public GlibFixture { diff --git a/tests/timezone-mock.h b/tests/timezone-mock.h index 55151aa..4fe647c 100644 --- a/tests/timezone-mock.h +++ b/tests/timezone-mock.h @@ -22,7 +22,7 @@ #include -namespace unity { +namespace ayatana { namespace indicator { namespace datetime { @@ -36,6 +36,6 @@ public: } // namespace datetime } // namespace indicator -} // namespace unity +} // namespace ayatana #endif // INDICATOR_DATETIME_TIMEZONE_MOCK_H diff --git a/tests/wakeup-timer-mock.h b/tests/wakeup-timer-mock.h index 8a59c97..9263d40 100644 --- a/tests/wakeup-timer-mock.h +++ b/tests/wakeup-timer-mock.h @@ -23,7 +23,7 @@ #include #include -namespace unity { +namespace ayatana { namespace indicator { namespace datetime { @@ -73,6 +73,6 @@ private: } // namespace datetime } // namespace indicator -} // namespace unity +} // namespace ayatana #endif // INDICATOR_DATETIME_WAKEUP_TIMER_MOCK_H -- cgit v1.2.3