// %BANNER_BEGIN% // --------------------------------------------------------------------- // %COPYRIGHT_BEGIN% // Copyright (c) (2024) Magic Leap, Inc. All Rights Reserved. // Use of this file is governed by the Software License Agreement, located here: https://www.magicleap.com/software-license-agreement-ml2 // Terms and conditions applicable to third-party materials accompanying this distribution may also be found in the top-level NOTICE file appearing herein. // %COPYRIGHT_END% // --------------------------------------------------------------------- // %BANNER_END% using System.Reflection; using NUnit.Framework; namespace UnitySDKEditorTests { #pragma warning disable CS0618 // Type or member is obsolete public partial class MLWebRTC { public partial class VideoSink : NativeBindingsTests { [SetUp] public void SetupNativeBindings() { var apiType = typeof(UnityEngine.XR.MagicLeap.MLWebRTC.VideoSink); nativeBindings = apiType.GetNestedType("NativeBindings", BindingFlags.NonPublic); } [Test] public void NativeBinding_MLWebRTCVideoSinkCreate_Exists() { AssertThatMethodExists("MLWebRTCVideoSinkCreate"); } [Test] public void NativeBinding_MLWebRTCVideoSinkSetSource_Exists() { AssertThatMethodExists("MLWebRTCVideoSinkSetSource"); } [Test] public void NativeBinding_MLWebRTCVideoSinkIsNewFrameAvailable_Exists() { AssertThatMethodExists("MLWebRTCVideoSinkIsNewFrameAvailable"); } [Test] public void NativeBinding_MLWebRTCVideoSinkAcquireNextAvailableFrame_Exists() { AssertThatMethodExists("MLWebRTCVideoSinkAcquireNextAvailableFrame"); } [Test] public void NativeBinding_MLWebRTCVideoSinkReleaseFrame_Exists() { AssertThatMethodExists("MLWebRTCVideoSinkReleaseFrame"); } [Test] public void NativeBinding_MLWebRTCVideoSinkDestroy_Exists() { AssertThatMethodExists("MLWebRTCVideoSinkDestroy"); } } } #pragma warning restore CS0618 // Type or member is obsolete }