#include "ui/views/controls/webview/webview.h"
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/common/content_client.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "content/test/test_content_browser_client.h"
#include "ui/events/event.h"
#include "ui/events/event_utils.h"
#include "ui/views/accessibility/view_accessibility.h"
#include "ui/views/controls/native/native_view_host.h"
#include "ui/views/test/views_test_utils.h"
#include "ui/views/test/widget_test.h"
#if defined(USE_AURA)
#include "ui/aura/window.h"
#endif
namespace views {
namespace {
class WebViewTestWebContentsObserver : public content::WebContentsObserver { … };
class WebViewTestWebContentsDelegate : public content::WebContentsDelegate { … };
void SimulateRendererCrash(content::WebContents* contents, WebView* view) { … }
}
class WebViewUnitTest : public views::test::WidgetTest { … };
TEST_F(WebViewUnitTest, TestWebViewAttachDetachWebContents) { … }
TEST_F(WebViewUnitTest, DetachedWebViewDestructor) { … }
TEST_F(WebViewUnitTest, CrashedOverlayView) { … }
TEST_F(WebViewUnitTest, DefaultConstructability) { … }
TEST_F(WebViewUnitTest, ReparentingUpdatesParentAccessible) { … }
#if BUILDFLAG(IS_LINUX)
#define MAYBE_ChangeAXMode …
#else
#define MAYBE_ChangeAXMode …
#endif
TEST_F(WebViewUnitTest, MAYBE_ChangeAXMode) { … }
TEST_F(WebViewUnitTest, WebViewClearsWebContentsOnDestruction) { … }
TEST_F(WebViewUnitTest, AccessibleProperties) { … }
}