diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-06-24 00:06:55 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-06-24 00:06:55 -0500 |
commit | dd54649aa56790ec43fc4272bc41e6916b4ebb31 (patch) | |
tree | 33acfae20aafafedab76921053426ba3fa36d6c2 /tests/manual-test-snap.cpp | |
parent | 373832769c30a950629a4ca9474bd7f5bf03a6b4 (diff) | |
download | ayatana-indicator-datetime-dd54649aa56790ec43fc4272bc41e6916b4ebb31.tar.gz ayatana-indicator-datetime-dd54649aa56790ec43fc4272bc41e6916b4ebb31.tar.bz2 ayatana-indicator-datetime-dd54649aa56790ec43fc4272bc41e6916b4ebb31.zip |
in the snap decision code, handle sound custom loop durations
Diffstat (limited to 'tests/manual-test-snap.cpp')
-rw-r--r-- | tests/manual-test-snap.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/manual-test-snap.cpp b/tests/manual-test-snap.cpp index a78fb9a..90dbe08 100644 --- a/tests/manual-test-snap.cpp +++ b/tests/manual-test-snap.cpp @@ -21,11 +21,15 @@ #include <datetime/appointment.h> #include <datetime/settings-live.h> #include <datetime/snap.h> +#include <datetime/timezones-live.h> #include <glib.h> using namespace unity::indicator::datetime; +#define TIMEZONE_FILE ("/etc/timezone") + + /*** **** ***/ @@ -70,7 +74,9 @@ int main() g_debug("SCHEMA_DIR is %s", SCHEMA_DIR); auto settings = std::make_shared<LiveSettings>(); - Snap snap (settings); + auto timezones = std::make_shared<LiveTimezones>(settings, TIMEZONE_FILE); + auto clock = std::make_shared<LiveClock>(timezones); + Snap snap (clock, settings); snap(a, show, dismiss); g_main_loop_run(loop); g_main_loop_unref(loop); |