Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix failing build | Robert Tari | 2021-08-12 | 2 | -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 only | Robert Tari | 2021-08-10 | 3 | -2/+3 |
| | |||||
* | tests/CMakeLists.txt: Adjust cppcheck call so that it succeeds with less ↵ | Robert Tari | 2021-08-04 | 1 | -1/+1 |
| | | | | --suppress parameters. | ||||
* | tests/CMakeLists.txt: Build unit tests with -no-pie CXXFLAG if GNU compiler ↵ | Mike Gabriel | 2021-08-04 | 1 | -0/+3 |
| | | | | is used. | ||||
* | tests/test-dbus-fixture.h: Turn TestDBusFixture::TestDBusFixture into an ↵ | Mike Gabriel | 2021-08-04 | 1 | -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 Gabriel | 2021-08-04 | 1 | -1/+1 |
| | | | | --suppress=unusedFunction. Be less strict and make the cppcheck pass. | ||||
* | tests/unit/adbd-client-test.cpp: white-space fix | Mike Gabriel | 2021-08-04 | 1 | -1/+1 |
| | |||||
* | cppcheck: Add several missing override statements to make cppcheck happy ↵ | Mike Gabriel | 2021-08-04 | 2 | -3/+3 |
| | | | | (which is one of our unit tests). | ||||
* | Rename GNOMELOCALEDIR -> LOCALEDIR. | Mike Gabriel | 2017-12-06 | 1 | -1/+1 |
| | |||||
* | Fork from Ubuntus' indicator-display project. | Mike Gabriel | 2017-11-28 | 4 | -14/+41 |
| | |||||
* | Make coverage reporting work. | Rodney Dawes | 2017-02-07 | 3 | -0/+18 |
| | |||||
* | remove the temporary tracers from r34 and r35 | Charles Kerr | 2016-10-19 | 1 | -8/+0 |
| | |||||
* | sync with lp:~charlesk/indicator-display/lp-1572545-prompt-in-lockscreen | Charles Kerr | 2016-09-22 | 8 | -27/+248 |
|\ | |||||
| * | sync UsbManagerFixture::USBDisconnectedDuringPrompt to r40, to expect a 'no' ↵ | Charles Kerr | 2016-05-03 | 1 | -2/+8 |
| | | | | | | | | each time there's a usb disconnect | ||||
| * | increase timeout interval on usb manager integration test | Charles Kerr | 2016-04-27 | 1 | -1/+1 |
| | | |||||
| * | sync tests to r33 changes | Charles Kerr | 2016-04-27 | 1 | -8/+3 |
| | | |||||
| * | silence 'no previous prototype' warning from clang | Charles Kerr | 2016-04-27 | 1 | -1/+1 |
| | | |||||
| * | silence clang warning in PrintTo gtest helper | Charles Kerr | 2016-04-27 | 1 | -3/+3 |
| | | |||||
| * | in tests/utils/adbd-server.h, fix a timing bug in the test scaffolding by ↵ | Charles Kerr | 2016-04-23 | 1 | -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 Kerr | 2016-04-22 | 4 | -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 closed | Charles Kerr | 2016-04-21 | 1 | -0/+13 |
| | | |||||
| * | code cleanup to prepare for MR | Charles Kerr | 2016-04-21 | 1 | -25/+15 |
| | | |||||
| * | don't pass a GDBusConnection to the Greeter ctor | Charles Kerr | 2016-04-21 | 1 | -5/+5 |
| | | |||||
| * | add unit tests for greeter | Charles Kerr | 2016-04-20 | 3 | -0/+197 |
| | | |||||
* | | more g_debug() tracers | Charles Kerr | 2016-09-22 | 1 | -5/+8 |
| | | |||||
* | | in UsbSnapTest, explicitly disconnect the core::Signals at the end of the test | Charles Kerr | 2016-09-22 | 1 | -1/+2 |
| | | |||||
* | | in AdbdClientTest, raise the test timeout interval from 2s to 5s | Charles Kerr | 2016-09-22 | 1 | -1/+1 |
| | | |||||
* | | in AdbdClientDest, explicitly disconnect the core::Signals at the end of the ↵ | Charles Kerr | 2016-09-22 | 1 | -1/+2 |
| | | | | | | | | test | ||||
* | | more g_debug() tracers | Charles Kerr | 2016-09-22 | 1 | -0/+5 |
|/ | |||||
* | add tracer g_debug() calls for the benefit of the integration tests | Charles Kerr | 2016-03-24 | 1 | -1/+1 |
| | |||||
* | replace text 'Deny' with 'Don't Allow' for consistency with other permission ↵ | Charles Kerr | 2016-03-23 | 2 | -2/+2 |
| | | | | prompts | ||||
* | add tests for not showing snap decisions in greeter mode | Charles Kerr | 2016-03-22 | 2 | -7/+35 |
| | |||||
* | don't show the snap decision until we're out of the greeter | Charles Kerr | 2016-03-22 | 1 | -0/+32 |
| | |||||
* | add multiple usb requests + disconnects to confirm the notification appears ↵ | Charles Kerr | 2016-03-22 | 1 | -25/+32 |
| | | | | on subsequent requests | ||||
* | in the mock ADB server, keep making a request until a response is received. | Charles Kerr | 2016-03-22 | 1 | -2/+4 |
| | |||||
* | make wait_for_signals() a macro again so that the GTest log messages will ↵ | Charles Kerr | 2016-03-22 | 1 | -10/+10 |
| | | | | give the test file and line number | ||||
* | if our USB device is disconnected while prompting the user for ADBD, cancel ↵ | Charles Kerr | 2016-03-21 | 5 | -26/+90 |
| | | | | the prompt. | ||||
* | introduce a QtFixture gtest base class to reduce redundancy in test ↵ | Charles Kerr | 2016-03-17 | 4 | -56/+69 |
| | | | | fixtures' helper/util code | ||||
* | de-dupe use of dbus names | Charles Kerr | 2016-03-17 | 3 | -17/+14 |
| | |||||
* | add tests/utils/qdbus-helpers.h so that we only define qDBusArgumentToMap() ↵ | Charles Kerr | 2016-03-17 | 3 | -29/+24 |
| | | | | in one place | ||||
* | use cmake's find_package(Threads) output everywhere instead of just in src/ | Charles Kerr | 2016-03-15 | 2 | -3/+3 |
| | |||||
* | oops, last commit's diagnosis was incorrect. The timing test issue came from ↵ | Charles Kerr | 2016-03-15 | 1 | -1/+1 |
| | | | | async dbus handling interfering with fast setup/teardown of automated tests. Revert the last change and fix by setting up the dbus signal subscription immediately upon getting the dbus connection. | ||||
* | fix test timing issue, had max timeout at 1 sec for listening for fdo ↵ | Charles Kerr | 2016-03-15 | 1 | -1/+1 |
| | | | | notification user response, but the tests on the phone are sometimes too slow for that timeout | ||||
* | in tests/unit/adbd-client-test.cpp, fix tmpl character buffer intialization ↵ | Charles Kerr | 2016-03-15 | 1 | -4/+2 |
| | | | | for g++ 4.9x | ||||
* | add new CMakeLists.txt files in tests/utils/ and tests/unit/ | Charles Kerr | 2016-03-15 | 2 | -0/+51 |
| | |||||
* | clean up compile_options and warnings. Add DBUS debug log messages to ctest ↵ | Charles Kerr | 2016-03-11 | 2 | -4/+7 |
| | | | | environment variables. | ||||
* | add UsbManager | Charles Kerr | 2016-03-10 | 6 | -48/+268 |
| | |||||
* | cmake and test directory cleanup | Charles Kerr | 2016-03-10 | 9 | -43/+77 |
| | |||||
* | add fingerprint snap decisions; test with notification dbusmock | Charles Kerr | 2016-03-08 | 3 | -16/+303 |
| | |||||
* | add test to confirm on_pk() signal is fired in the main thread rather than ↵ | Charles Kerr | 2016-03-07 | 1 | -6/+9 |
| | | | | the worker thread |