public void WebHttpRequestInterceptorConstructor() { tlog.Debug(tag, $"WebHttpRequestInterceptorConstructor START"); using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai")) { var testingTarget = new WebHttpRequestInterceptor(webview.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <WebHttpRequestInterceptor>(testingTarget, "Should return WebHttpRequestInterceptor instance."); testingTarget.Dispose(); } tlog.Debug(tag, $"WebHttpRequestInterceptorConstructor END (OK)"); }
public void WebViewHttpRequestInterceptedEventArgsHttpRequestInterceptor() { tlog.Debug(tag, $"WebViewPageLoadErrorEventArgsHttpRequestInterceptor START"); using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai")) { WebHttpRequestInterceptor interceptor = new WebHttpRequestInterceptor(webview.SwigCPtr.Handle, false); var testingTarget = new WebViewHttpRequestInterceptedEventArgs(interceptor); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <WebViewHttpRequestInterceptedEventArgs>(testingTarget, "Should return WebViewHttpRequestInterceptedEventArgs instance."); var result = testingTarget.HttpRequestInterceptor; tlog.Debug(tag, "HttpRequestInterceptor : " + result); interceptor.Dispose(); } tlog.Debug(tag, $"WebViewHttpRequestInterceptedEventArgsHttpRequestInterceptor END (OK)"); }