summaryrefslogtreecommitdiff
path: root/src/qcam/assets/feathericons/arrow-up-left.svg
blob: cea55e87a7a5e08185672d985bb8e7048ce8f02f (plain)
1
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline></svg>
> #include <iostream> #include "camera_test.h" #include "test.h" using namespace std; namespace { class ConfigurationDefault : public CameraTest, public Test { public: ConfigurationDefault() : CameraTest("platform/vimc.0 Sensor B") { } protected: int init() override { return status_; } int run() override { std::unique_ptr<CameraConfiguration> config; /* Test asking for configuration for a video stream. */ config = camera_->generateConfiguration({ StreamRole::VideoRecording }); if (!config || config->size() != 1) { cout << "Default configuration invalid" << endl; return TestFail; } /* * Test that asking for configuration for an empty array of * stream roles returns an empty camera configuration. */ config = camera_->generateConfiguration({}); if (!config || config->size() != 0) { cout << "Failed to retrieve configuration for empty roles list" << endl; return TestFail; } return TestPass; } }; } /* namespace */ TEST_REGISTER(ConfigurationDefault)