summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Expand)Author
2021-11-24test: Convert to pragma onceKieran Bingham
2021-11-02libcamera: bayer_format: Turn BayerFormat::Packing into scoped enumLaurent Pinchart
2021-10-15test: Remove using namespace in header filesHirokazu Honda
2021-10-15libcamera: geometry: Add Size members to grown or shrink by a marginLaurent Pinchart
2021-10-04test: gstreamer: Remove unnecessary header file includesVedant Paranjape
2021-09-27libcamera: control_serializer: Separate the handles spaceJacopo Mondi
2021-09-24test: gstreamer: Add a test for gstreamer multi streamVedant Paranjape
2021-09-23test: v4l2_compat: Skip vimc as a test candidatePaul Elder
2021-09-23test: gstreamer: Simplify elements' ownershipsVedant Paranjape
2021-09-23test: gstreamer: Simplify single stream test using functions from GstUtilsVedant Paranjape
2021-09-23test: gstreamer_single_stream_test: Fix memory leakVedant Paranjape
2021-09-19test: v4l2_compat: Report test as skipped if no compatible driver foundLaurent Pinchart
2021-09-15test: serialization: Prevent parallelisationKieran Bingham
2021-09-10test: v4l2_compat_test: Fix v4l2-compliance version parsingPaul Elder
2021-09-09test: gstreamer: Fix the destructor of GstreamerTest base classVedant Paranjape
2021-09-08test: gstreamer: Factor out code into a base classVedant Paranjape
2021-09-07libcamera: v4l2_videodevice: Drop toV4L2PixelFormat()Laurent Pinchart
2021-09-07libcamera: base: utils: Use size_t for index in utils::enumerate()Laurent Pinchart
2021-09-02libcamera: Drop emitter object pointer from signal argumentsLaurent Pinchart
2021-09-02libcamera: Don't use emitter object pointer argument to slotLaurent Pinchart
2021-09-02libcamera: base: signal: Support connecting signals to functorsLaurent Pinchart
2021-09-02libcamera: Use simpler Signal::disconnect() functionLaurent Pinchart
2021-09-01test: v4l2_compat: Disable test when ASan is enabledLaurent Pinchart
2021-08-31libcamera: camera_sensor: Transform CameraSensor::sizes()Umang Jain
2021-08-26test: gstreamer: Disable gstreamer registry forksVedant Paranjape
2021-08-26test: gstreamer: Clean up memory managementVedant Paranjape
2021-08-19ipa: Use FileDescriptor instead of int in layers above IPC payloadPaul Elder
2021-08-19test: camera: Camera reconfiguration and fd-leak testUmang Jain
2021-08-19libtest: camera_test: Plumb constructor to set LIBCAMERA_IPA_FORCE_ISOLATIONUmang Jain
2021-08-14test: gstreamer: Add test for gstreamer single streamVedant Paranjape
2021-08-12test: control serialization: Test lookup by ControlIdJacopo Mondi
2021-08-12libcamera: controls: Create ControlInfoMap with ControlIdMapJacopo Mondi
2021-08-10libcamera: MappedFrameBuffer: Use typed Flags<MapModes>Kieran Bingham
2021-08-10libcamera: Give MappedFrameBuffer its own implementationKieran Bingham
2021-08-09libcamera: Rename 'method' to 'function'Laurent Pinchart
2021-08-03libcamera: file: Turn MapFlag and OpenModeFlag into enum classLaurent Pinchart
2021-08-03test: Add tests for the Flags classLaurent Pinchart
2021-08-02controls: Add boolean constructors for ControlInfoPaul Elder
2021-07-11libcamera: buffer: Rename buffer.h to framebuffer.hLaurent Pinchart
2021-07-11test: message: Test recursive Thread::dispatchMessages() callsLaurent Pinchart
2021-07-06libcamera: camera: Make stop() idempotentNĂ­colas F. R. A. Prado
2021-06-25test: Ensure LIBCAMERA_BASE_PRIVATE isn't publicKieran Bingham
2021-06-25libcamera: rename public libcamera dependencyKieran Bingham
2021-06-25libcamera/base: Validate internal headers as privateKieran Bingham
2021-06-25libcamera/base: Move span to base libraryKieran Bingham
2021-06-25libcamera/base: Move event_notifier to baseKieran Bingham
2021-06-25libcamera/base: Move File to base libraryKieran Bingham
2021-06-25libcamera/base: Move extended base functionalityKieran Bingham
2021-06-25libcamera/base: Move utils to the base libraryKieran Bingham
2021-06-08libcamera: utils: Add helper class for std::chrono::durationNaushir Patuck
class="hl opt">) { cerr << "Unary bitwise OR with Flags<> failed" << endl; return TestFail; } /* options &= Options(Mode::Alpha); */ /* options |= Options(Mode::Beta); */ /* options ^= Options(Mode::Gamma); */ options &= ~Options(Option::First); if (options) { cerr << "Unary bitwise AND with Flags<> failed" << endl; return TestFail; } options ^= Options(Option::Second); if (options != Option::Second) { cerr << "Unary bitwise XOR with Flags<> failed" << endl; return TestFail; } options = Options(); /* * Binary operators with enum argument. */ options = options | Option::First; if (!(options & Option::First)) { cerr << "Binary bitwise OR with enum failed" << endl; return TestFail; } /* options = options & Mode::Alpha; */ /* options = options | Mode::Beta; */ /* options = options ^ Mode::Gamma; */ options = options & ~Option::First; if (options != (Option::First & Option::Second)) { cerr << "Binary bitwise AND with enum failed" << endl; return TestFail; } options = options ^ (Option::First ^ Option::Second); if (options != (Option::First | Option::Second)) { cerr << "Binary bitwise XOR with enum failed" << endl; return TestFail; } options = Options(); /* * Binary operators with Flags argument. */ options |= Options(Option::First); if (!(options & Option::First)) { cerr << "Binary bitwise OR with Flags<> failed" << endl; return TestFail; } /* options = options & Options(Mode::Alpha); */ /* options = options | Options(Mode::Beta); */ /* options = options ^ Options(Mode::Gamma); */ options = options & ~Options(Option::First); if (options) { cerr << "Binary bitwise AND with Flags<> failed" << endl; return TestFail; } options = options ^ Options(Option::Second); if (options != Option::Second) { cerr << "Binary bitwise XOR with Flags<> failed" << endl; return TestFail; } options = Options(); /* * Conversion operators. */ options |= Option::First | Option::Second | Option::Third; if (static_cast<Options::Type>(options) != 7) { cerr << "Cast to underlying type failed" << endl; return TestFail; } /* * Conversion of the result of ninary operators on the underlying enum. */ /* unsigned int val1 = Option::First; */ /* unsigned int val2 = ~Option::First; */ /* unsigned int val3 = Option::First | Option::Second; */ /* Option val4 = ~Option::First; */ /* Option val5 = Option::First | Option::Second; */ return TestPass; } TEST_REGISTER(FlagsTest)