{
private const string TAG = "Tizen.MachineLearning.Inference.Tests";
private const string FeatureKey = "http://tizen.org/feature/machine_learning.inference";
+ private const string PrivilegeFeatureKey = "http://tizen.org/feature/security.privacy_privilege";
private const int SleepTime = 1000; // default sleep time to run the pipeline
private readonly string _generalPipeline = "videotestsrc is-live=true ! videoconvert ! valve name=valvex ! tensor_converter ! tensor_sink name=sinkx async=false";
[Property("AUTHOR", "Gichan Jang, gichan2.jang@samsung.com")]
public void Pipeline_INIT_CHECK_UnauthorizedAccessException()
{
+ bool _isPrivacyPrivilegeSupported = false;
try
{
+ /* Check the privilege support */
+ Information.TryGetValue(PrivilegeFeatureKey, out _isPrivacyPrivilegeSupported);
+
string description = "tizencamvideosrc ! videoconvert ! videoscale ! video/x-raw,format=RGB,width=320,height=240 ! tensor_converter ! tensor_sink";
/* TEST CODE */
}
else
{
- Assert.Fail(e.Message);
+ Assert.IsTrue(_isPrivacyPrivilegeSupported == false, e.Message);
}
}
}