aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove ENABLE_LOMIRI_FEATURES CMake flagRatchanan Srirattanamet2023-12-141-3/+1
| | | | | | | | There's no longer any Lomiri-specific code in this repo, so remove the flag. The unit test actually works without the flag, so do include it without the condition.
* tests: remove no longer needed partsRatchanan Srirattanamet2023-12-1412-520/+0
|
* Remove USB manager and corresponding testsRatchanan Srirattanamet2023-12-147-679/+0
| | | | | | | | Since this is renamed, it has never worked correctly anyway. I've forked this part of code as "adbd-approver" [1], so this part can now be removed. [1] https://gitlab.com/ubports/development/core/adbd-approver
* tests/CMakeLists.txt: Suppress useless override buggy cppcheck warningRobert Tari2023-10-091-1/+1
|
* Rename indicator class and service source filesRobert Tari2023-10-091-3/+3
|
* Remove orphan notify-osd remnantsRobert Tari2023-09-102-10/+4
|
* Skip geoclue calls during the rotation lock testRobert Tari2023-02-041-0/+1
|
* Allow building with(out) Lomiri featuresRobert Tari2022-12-151-4/+5
|
* Fix failing cppcheckRobert Tari2022-10-023-3/+7
| | | | fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/58
* data/: Rename org.ayatana.display.gschema.xml.in to ↵Mike Gabriel2022-09-081-2/+2
| | | | org.ayatana.indicator.display.gschema.xml. Fix and simplify translations of .gschema.xml strings with it.
* tests/utils/qmain.cpp: Add missing include for libintl.hJami Kettunen2022-06-301-0/+1
| | | | | | | | | | | | Fixes the following build error under musl libc: ../../../tests/utils/qmain.cpp: In function 'int main(int, char**)': ../../../tests/utils/qmain.cpp:47:5: error: 'bindtextdomain' was not declared in this scope 47 | bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR); | ^~~~~~~~~~~~~~ ../../../tests/utils/qmain.cpp:48:5: error: 'textdomain' was not declared in this scope 48 | textdomain(GETTEXT_PACKAGE); | ^~~~~~~~~~
* tests/unit: fix cmake custom command race conditionRatchanan Srirattanamet2022-03-071-1/+8
| | | | | | | | | | | | | | | | | | | CMake's documentation says [1]: > Do not list the output in more than one independent target that may > build in parallel or the two instances of the rule may conflict > (instead use the add_custom_target() command to drive the command and > make the other targets depend on that one). Because gschemas.compiled will be referenced multiple times independently, a level of redirection is needed to prevent CMake from generating the rule for the file multiple times. This is encountered in ayatana-indicator-power as well, and fixed in a similar way [2]. [1] https://cmake.org/cmake/help/latest/command/add_custom_command.html#generating-files [2] https://github.com/AyatanaIndicators/ayatana-indicator-power/commit/9a90f932e51db486b166dd38f00e4186e40a1aee
* tests/integration/usb-manager-test.cpp: Remove unneded lambda captureRobert Tari2022-01-121-1/+3
|
* tests/utils/CMakeLists.txt: Fix qt5_use_modules warningRobert Tari2021-12-081-5/+5
|
* GSettings: Use org.ayatana.display.gschema.xml for non-Lomiri sessions and ↵Mike Gabriel2021-11-191-5/+2
| | | | | | | | unit tests. Additionally, internationalize the org.ayatana.display GSettings schema. Fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/39
* Rename Lomiri-specific properties to x-lomiriRobert Tari2021-11-092-6/+6
|
* Rename com.ubuntu.touch.system to com.lomiri.touch.systemRobert Tari2021-11-011-2/+2
|
* Raname x-canonical properties to x-ayatanaRobert Tari2021-10-272-6/+6
|
* tests/CMakeFiles.txt: Suppress constParameter cppcheckRobert Tari2021-10-251-1/+1
| | | | - Making the problematic parts "const" produce even more warnings, so I'm considering this a false positive and disabling it
* tests/integration/usb-manager-test.cpp: Fix cppcheck test in Ubuntu 20.04. ↵Mike Gabriel2021-08-301-0/+9
| | | | Mark unused adbd_server and usb_manager as such.
* Fix failing buildRobert Tari2021-08-122-2/+5
| | | | | | | | - src/rotation-lock.cpp: Fix double declaration of create_desktop_menu - tests/CMakeLists.txt: Add uninitDerivedMemberVar and unmatchedSuppression suppressions to cppcheck - tests/unit/rotation-lock-test.cpp: Fix and expand test fixes https://github.com/AyatanaIndicators/ayatana-indicator-display/issues/24
* Use -no-pie build flag for tests onlyRobert Tari2021-08-103-2/+3
|
* tests/CMakeLists.txt: Adjust cppcheck call so that it succeeds with less ↵Robert Tari2021-08-041-1/+1
| | | | --suppress parameters.
* tests/CMakeLists.txt: Build unit tests with -no-pie CXXFLAG if GNU compiler ↵Mike Gabriel2021-08-041-0/+3
| | | | is used.
* tests/test-dbus-fixture.h: Turn TestDBusFixture::TestDBusFixture into an ↵Mike Gabriel2021-08-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | explicitly declared constructor. Resolves issues like these: In file included from /rootdir/tests/unit/rotation-lock-test.cpp:20: In file included from /rootdir/tests/utils/test-dbus-fixture.h:22: In file included from /rootdir/tests/utils/glib-fixture.h:30: In file included from /usr/src/googletest/googletest/include/gtest/gtest.h:62: /usr/src/googletest/googletest/include/gtest/internal/gtest-internal.h:472:44: error: call to implicitly-deleted default constructor of 'RotationLockFixture_CheckIndicator_Test' Test* CreateTest() override { return new TestClass; } ^ /rootdir/tests/unit/rotation-lock-test.cpp:46:1: note: in instantiation of member function 'testing::internal::TestFactoryImpl<RotationLockFixture_CheckIndicator_Test>::CreateTest' requested here TEST_F(RotationLockFixture, CheckIndicator) ^ /usr/src/googletest/googletest/include/gtest/gtest.h:2381:3: note: expanded from macro 'TEST_F' GTEST_TEST_(test_fixture, test_name, test_fixture, \ ^ /usr/src/googletest/googletest/include/gtest/internal/gtest-internal.h:1565:15: note: expanded from macro 'GTEST_TEST_' new ::testing::internal::TestFactoryImpl<GTEST_TEST_CLASS_NAME_( \ ^ /rootdir/tests/unit/rotation-lock-test.cpp:46:1: note: explicitly defaulted function was implicitly deleted here /usr/src/googletest/googletest/include/gtest/gtest.h:2381:3: note: expanded from macro 'TEST_F' GTEST_TEST_(test_fixture, test_name, test_fixture, \ ^ /usr/src/googletest/googletest/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/src/googletest/googletest/include/gtest/internal/gtest-internal.h:1533:3: note: expanded from macro 'GTEST_TEST_CLASS_NAME_' test_suite_name##_##test_name##_Test ^ <scratch space>:198:1: note: expanded from here RotationLockFixture_CheckIndicator_Test ^ /rootdir/tests/unit/rotation-lock-test.cpp:46:1: note: default constructor of 'RotationLockFixture_CheckIndicator_Test' is implicitly deleted because base class 'RotationLockFixture' has a deleted default constructor /usr/src/googletest/googletest/include/gtest/gtest.h:2381:3: note: expanded from macro 'TEST_F' GTEST_TEST_(test_fixture, test_name, test_fixture, \ ^ /usr/src/googletest/googletest/include/gtest/internal/gtest-internal.h:1542:9: note: expanded from macro 'GTEST_TEST_' : public parent_class { \ ^ /rootdir/tests/unit/rotation-lock-test.cpp:24:28: note: default constructor of 'RotationLockFixture' is implicitly deleted because base class 'TestDBusFixture' has a deleted default constructor class RotationLockFixture: public TestDBusFixture ^ /rootdir/tests/utils/test-dbus-fixture.h:32:5: note: explicitly defaulted function was implicitly deleted here TestDBusFixture() =default; ^ /rootdir/tests/utils/test-dbus-fixture.h:69: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; ^ 2 warnings and 1 error generated.
* tests/CMakeLists.txt: Add options --suppress=missingInclude and ↵Mike Gabriel2021-08-041-1/+1
| | | | --suppress=unusedFunction. Be less strict and make the cppcheck pass.
* tests/unit/adbd-client-test.cpp: white-space fixMike Gabriel2021-08-041-1/+1
|
* cppcheck: Add several missing override statements to make cppcheck happy ↵Mike Gabriel2021-08-042-3/+3
| | | | (which is one of our unit tests).
* Rename GNOMELOCALEDIR -> LOCALEDIR.Mike Gabriel2017-12-061-1/+1
|
* Fork from Ubuntus' indicator-display project.Mike Gabriel2017-11-284-14/+41
|
* Make coverage reporting work.Rodney Dawes2017-02-073-0/+18
|
* remove the temporary tracers from r34 and r35Charles Kerr2016-10-191-8/+0
|
* sync with lp:~charlesk/indicator-display/lp-1572545-prompt-in-lockscreenCharles Kerr2016-09-228-27/+248
|\
| * sync UsbManagerFixture::USBDisconnectedDuringPrompt to r40, to expect a 'no' ↵Charles Kerr2016-05-031-2/+8
| | | | | | | | each time there's a usb disconnect
| * increase timeout interval on usb manager integration testCharles Kerr2016-04-271-1/+1
| |
| * sync tests to r33 changesCharles Kerr2016-04-271-8/+3
| |
| * silence 'no previous prototype' warning from clangCharles Kerr2016-04-271-1/+1
| |
| * silence clang warning in PrintTo gtest helperCharles Kerr2016-04-271-3/+3
| |
| * in tests/utils/adbd-server.h, fix a timing bug in the test scaffolding by ↵Charles Kerr2016-04-231-11/+9
| | | | | | | | creating the adb socket in AdbdServer's ctor instead of in its worker thread.
| * don't prompt when the greeter's not running yet: change greeter's payload ↵Charles Kerr2016-04-224-16/+39
| | | | | | | | from an 'is_active' bool to a three-value state of active, inactive, and unavailable
| * tell glib not to exit when the gdbusconnection is closedCharles Kerr2016-04-211-0/+13
| |
| * code cleanup to prepare for MRCharles Kerr2016-04-211-25/+15
| |
| * don't pass a GDBusConnection to the Greeter ctorCharles Kerr2016-04-211-5/+5
| |
| * add unit tests for greeterCharles Kerr2016-04-203-0/+197
| |
* | more g_debug() tracersCharles Kerr2016-09-221-5/+8
| |
* | in UsbSnapTest, explicitly disconnect the core::Signals at the end of the testCharles Kerr2016-09-221-1/+2
| |
* | in AdbdClientTest, raise the test timeout interval from 2s to 5sCharles Kerr2016-09-221-1/+1
| |
* | in AdbdClientDest, explicitly disconnect the core::Signals at the end of the ↵Charles Kerr2016-09-221-1/+2
| | | | | | | | test
* | more g_debug() tracersCharles Kerr2016-09-221-0/+5
|/
* add tracer g_debug() calls for the benefit of the integration testsCharles Kerr2016-03-241-1/+1
|