aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* get event selection up-to-date with the spec, including showing in-progress ↵Charles Kerr2021-07-052-0/+11
| | | | events. add unit tests to cover event priority and display order.
* update unit test.Renato Araujo Oliveira Filho2021-07-011-6/+8
|
* resolve some test timing issues by deferring Snap object creation until it's ↵Charles Kerr2021-07-011-10/+8
| | | | needed
* in test-notifications we do need one wait() wart after all, because the Snap ↵Charles Kerr2021-07-011-24/+1
| | | | is building its impl proxies asynchronously and hasn't any public way of notifying when they're built
* update notification tests to wait for the needed bus events instead of ↵Charles Kerr2021-07-013-513/+48
| | | | waiting for arbitrary time intervals
* add a DBusMock test Fixture with helper functions to wait for arbitrary bus ↵Charles Kerr2021-07-012-47/+162
| | | | method calls
* in the GLib test Fixture, add helper functions to wait for arbitrary events ↵Charles Kerr2021-07-011-0/+88
| | | | and bus events
* add notification title, icon checks to test-notification's battery of test ↵Charles Kerr2021-07-012-16/+43
| | | | combinations
* Move notifications tests into a new unit test. Extract notifications test ↵Charles Kerr2021-07-015-349/+823
| | | | fixture into a reusable header.
* add explanation comments to test-snapCharles Kerr2021-07-011-10/+11
|
* in test-snap, move new tests to bottom to avoid confusing diffCharles Kerr2021-07-011-0/+71
|
* add combinatorial tests to check how snap behaves under system settings, ↵Charles Kerr2021-07-011-17/+86
| | | | event types, etc
* add Settings tests for blacklisting apps' notificationsCharles Kerr2021-06-301-0/+49
|
* re-enable sound tests in test-snapCharles Kerr2021-06-301-1/+1
|
* in test-snap, wait a moment after creating the Snap to allow its async dbus ↵Charles Kerr2021-06-301-7/+21
| | | | internals to finish bootstrapping
* rather than commenting out a test, use Google Test's DISABLED_ feature to ↵Charles Kerr2021-06-301-3/+1
| | | | disable it
* disable broken testCharles Kerr2021-06-301-0/+2
|
* tests/CMakeLists.txt: Try to fix build failure on Debian Testing where cp -f ↵Robert Tari2021-06-271-1/+1
| | | | is performed.
* If possible, avoid deprecated g_time_zone_newRobert Tari2021-06-279-2/+99
| | | | fixes https://github.com/AyatanaIndicators/ayatana-indicator-datetime/issues/34
* tests/test-dbus-fixture.h: Turn TestDBusFixture::TestDBusFixture into an ↵Mike Gabriel2021-05-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | explicitly declared constructor. Resolves issues like these: ``` In file included from /rootdir/tests/test-actions.cpp:22: In file included from /rootdir/tests/state-fixture.h:23: In file included from /rootdir/tests/test-dbus-fixture.h:23: In file included from /rootdir/tests/glib-fixture.h:29: In file included from /usr/include/gtest/gtest.h:62: /usr/include/gtest/internal/gtest-internal.h:472:44: error: call to implicitly-deleted default constructor of 'ActionsFixture_DesktopOpenCalendarApp_Test' Test* CreateTest() override { return new TestClass; } ^ /rootdir/tests/test-actions.cpp:188:1: note: in instantiation of member function 'testing::internal::TestFactoryImpl<ActionsFixture_DesktopOpenCalendarApp_Test>::CreateTest' requested here TEST_F(ActionsFixture, DesktopOpenCalendarApp) ^ /usr/include/gtest/gtest.h:2381:3: note: expanded from macro 'TEST_F' GTEST_TEST_(test_fixture, test_name, test_fixture, \ ^ /usr/include/gtest/internal/gtest-internal.h:1565:15: note: expanded from macro 'GTEST_TEST_' new ::testing::internal::TestFactoryImpl<GTEST_TEST_CLASS_NAME_( \ ^ /rootdir/tests/test-actions.cpp:188:1: note: explicitly defaulted function was implicitly deleted here /usr/include/gtest/gtest.h:2381:3: note: expanded from macro 'TEST_F' GTEST_TEST_(test_fixture, test_name, test_fixture, \ ^ /usr/include/gtest/internal/gtest-internal.h:1544:5: note: expanded from macro 'GTEST_TEST_' GTEST_TEST_CLASS_NAME_(test_suite_name, test_name)() = default; \ ^ /usr/include/gtest/internal/gtest-internal.h:1533:3: note: expanded from macro 'GTEST_TEST_CLASS_NAME_' test_suite_name##_##test_name##_Test ^ <scratch space>:101:1: note: expanded from here ActionsFixture_DesktopOpenCalendarApp_Test ^ /rootdir/tests/test-actions.cpp:188:1: note: default constructor of 'ActionsFixture_DesktopOpenCalendarApp_Test' is implicitly deleted because base class 'ActionsFixture' has a deleted default constructor /usr/include/gtest/gtest.h:2381:3: note: expanded from macro 'TEST_F' GTEST_TEST_(test_fixture, test_name, test_fixture, \ ^ /usr/include/gtest/internal/gtest-internal.h:1542:9: note: expanded from macro 'GTEST_TEST_' : public parent_class { \ ^ /rootdir/tests/test-actions.cpp:26:23: note: default constructor of 'ActionsFixture' is implicitly deleted because base class 'ayatana::indicator::datetime::StateFixture' has a deleted default constructor class ActionsFixture: public StateFixture ^ /rootdir/tests/state-fixture.h:36:21: note: default constructor of 'StateFixture' is implicitly deleted because base class 'TestDBusFixture' has a deleted default constructor class StateFixture: public TestDBusFixture ^ /rootdir/tests/test-dbus-fixture.h:33:5: note: explicitly defaulted function was implicitly deleted here TestDBusFixture() =default; ^ /rootdir/tests/test-dbus-fixture.h:70:36: note: default constructor of 'TestDBusFixture' is implicitly deleted because field 'service_dirs' of const-qualified type 'const std::vector<std::string>' (aka 'const vector<basic_string<char>>') would not be initialized const std::vector<std::string> service_dirs; ^ ```
* tests/test-eds-ics-missing-trigger.cpp: Include engine-eds.h prio to ↵Mike Gabriel2021-05-051-1/+1
| | | | | | | | | alarm-queue-simple.h. Addresses this issue occuring when building with clang++: /usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/ext/new_allocator.h:150:23: error: no matching constructor for initialization of 'ayatana::indicator::datetime::EdsEngine' { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
* Various tests fixesNicholas Guriev2021-05-053-16/+20
| | | | | | | | | * Provide default EdsEngine constructor for autotests. * Temporary disable DST related tests. Something strange happens there. * Do not create locale datetime for more reliable result on non-UTC systems. * Specify audio_url for sample Alarms. Fixes AyatanaIndicators/ayatana-indicator-datetime#32
* CMakeLists.txt: Add Clang support.Mike Gabriel2021-05-051-2/+2
|
* gsettings: Drop the 'show-clock' setting. Always show the clock.Robert Tari2020-09-051-1/+0
| | | | | | | The 'show-clock' gsetting option made it possible to "hide" the time from the indicator. Fixes AyatanaIndicator/ayatana-indicator-datetime#16.
* Partially revert fab51b4. Only rename those x-canonical attributes to ↵Mike Gabriel2020-08-114-5/+5
| | | | x-ayatana if they are solely used by Ayatana Indicators.
* Replace x-canonical attributesRobert Tari2020-08-115-19/+19
|
* Time *and* Date.Simon Quigley2020-08-061-2/+2
|
* URL dispatcher on non-Ubuntu: Fake it as best as possible, so that the unit ↵Mike Gabriel2018-03-281-2/+0
| | | | tests are happy and succeed.
* tests/CMakeLists.txt: EDS tests are not limited to URL dispatcher builds, so ↵Mike Gabriel2018-03-281-4/+0
| | | | re-enabling them on non-Ubuntu.
* tests/CMakeLists.txt: Only build manual-test-snap on Ubuntu.Mike Gabriel2018-03-281-3/+5
|
* sync unit tests with calendar, locations being visible in phone profileCharles Kerr2018-03-261-2/+2
|
* honor gsettings for calendar eventsCharles Kerr2018-03-261-0/+1
|
* use @FOO@ intead of ${FOO} for variable substitution when configuring filesCharles Kerr2018-03-263-4/+4
|
* add a ualarm to test-snap.cppCharles Kerr2018-03-261-3/+14
|
* use cmake's configure_file() to generate the test .ics files from .ics.in so ↵Charles Kerr2018-03-268-5/+7
| | | | that we don't have to hardcode the filenames in the test data files either
* use the new ALARM_DEFAULT_SOUND symbolic in the src and test cpp filesCharles Kerr2018-03-263-10/+10
|
* As we removed a day we need to edit the test too.Andrea Azzarone2018-03-261-2/+1
|
* 31-jun is not a real day.Andrea Azzarone2018-03-265-5/+5
|
* tests/CMakeLists.txt: Fix linking when built with URL dispatcher support.Mike Gabriel2018-03-261-1/+1
|
* URL dispatcher support: Build phone code, even if URL dispatcher is unavailable.Mike Gabriel2018-03-266-24/+4
|
* Revert "Geoclue -> Geoclue2 blind shot. More namespace changes."Mike Gabriel2018-03-261-7/+7
| | | | This reverts commit 67a3944dad4efda6ab20c4b6d6b1d96e245ba8c3.
* Geoclue -> Geoclue2 blind shot. More namespace changes.Mike Gabriel2018-03-161-7/+7
|
* tests/manual: white-space fixMike Gabriel2017-12-081-1/+0
|
* Fix executable/project name (indicator-datetime -> ↵Mike Gabriel2017-12-084-18/+18
| | | | ayatana-indicator-datetime) at various locations.
* tests/CMakeLists.txt: Also update DG_LOG_DOMAIN namespace in test suite.Mike Gabriel2017-12-081-1/+1
|
* README.md: Add some manual line breaks.Mike Gabriel2017-12-0815-27/+27
|
* tests/test-formatter.cpp: Fix locale setting and ignore failures if the ↵Mike Gabriel2017-12-081-9/+16
| | | | build system does not have en_US.UTF-8 as valid locale available.
* tests/run-eds-ics-test.sh: Make sure the folder for the tasks.isc file ↵Mike Gabriel2017-12-081-0/+1
| | | | exists before copying it there.
* Indicator namespace adaptations.Mike Gabriel2017-12-082-6/+6
|
* Make the datetime indicator build on non-Ubuntu systems (which mostly lack ↵Mike Gabriel2017-12-088-1/+32
| | | | url-dispatcher and Ubuntu Touch sound schema files.