aboutsummaryrefslogtreecommitdiff
path: root/tests/utils
Commit message (Collapse)AuthorAgeFilesLines
* cppcheck: Fix missingOverride complaints.Mike Gabriel2024-05-172-2/+2
|
* tests: remove no longer needed partsRatchanan Srirattanamet2023-12-1410-509/+0
|
* 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/utils/CMakeLists.txt: Fix qt5_use_modules warningRobert Tari2021-12-081-5/+5
|
* 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.
* Rename GNOMELOCALEDIR -> LOCALEDIR.Mike Gabriel2017-12-061-1/+1
|
* Fork from Ubuntus' indicator-display project.Mike Gabriel2017-11-282-6/+5
|
* 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-222-2/+20
| | | | from an 'is_active' bool to a three-value state of active, inactive, and unavailable
* add unit tests for greeterCharles Kerr2016-04-201-0/+41
|
* add tracer g_debug() calls for the benefit of the integration testsCharles Kerr2016-03-241-1/+1
|
* add tests for not showing snap decisions in greeter modeCharles Kerr2016-03-221-4/+4
|
* don't show the snap decision until we're out of the greeterCharles Kerr2016-03-221-0/+32
|
* in the mock ADB server, keep making a request until a response is received.Charles Kerr2016-03-221-2/+4
|
* make wait_for_signals() a macro again so that the GTest log messages will ↵Charles Kerr2016-03-221-10/+10
| | | | give the test file and line number
* if our USB device is disconnected while prompting the user for ADBD, cancel ↵Charles Kerr2016-03-213-22/+49
| | | | the prompt.
* introduce a QtFixture gtest base class to reduce redundancy in test ↵Charles Kerr2016-03-171-0/+58
| | | | fixtures' helper/util code
* de-dupe use of dbus namesCharles Kerr2016-03-171-5/+0
|
* add tests/utils/qdbus-helpers.h so that we only define qDBusArgumentToMap() ↵Charles Kerr2016-03-171-0/+21
| | | | in one place
* add new CMakeLists.txt files in tests/utils/ and tests/unit/Charles Kerr2016-03-151-0/+17
|
* add UsbManagerCharles Kerr2016-03-101-0/+45
|
* cmake and test directory cleanupCharles Kerr2016-03-105-0/+564