diff options
Diffstat (limited to 'test/camera/configuration_default.cpp')
-rw-r--r-- | test/camera/configuration_default.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/camera/configuration_default.cpp b/test/camera/configuration_default.cpp index 8a767d23..ce2ec5d0 100644 --- a/test/camera/configuration_default.cpp +++ b/test/camera/configuration_default.cpp @@ -22,7 +22,7 @@ protected: /* Test asking for configuration for a video stream. */ config = camera_->generateConfiguration({ StreamRole::VideoRecording }); - if (!config || !config->isValid()) { + if (!config || config->size() != 1) { cout << "Default configuration invalid" << endl; return TestFail; } @@ -32,7 +32,7 @@ protected: * stream roles returns an empty camera configuration. */ config = camera_->generateConfiguration({}); - if (!config || config->isValid()) { + if (!config || config->size() != 0) { cout << "Failed to retrieve configuration for empty roles list" << endl; return TestFail; |