#include "ui/views/controls/webview/web_dialog_view.h"
#include <memory>
#include <utility>
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/common/content_client.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_renderer_host.h"
#include "content/test/test_content_browser_client.h"
#include "content/test/test_web_contents.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/mojom/ui_base_types.mojom-shared.h"
#include "ui/events/keycodes/keyboard_codes.h"
#include "ui/views/test/view_metadata_test_utils.h"
#include "ui/views/test/widget_test.h"
#include "ui/views/window/dialog_delegate.h"
#include "ui/web_dialogs/test/test_web_contents_handler.h"
#include "ui/web_dialogs/test/test_web_dialog_delegate.h"
#include "ui/web_dialogs/web_dialog_web_contents_delegate.h"
#include "url/gurl.h"
namespace views {
class TestWebDialogViewWebDialogDelegate
: public ui::test::TestWebDialogDelegate { … };
class WebDialogViewUnitTest : public views::test::WidgetTest { … };
TEST_F(WebDialogViewUnitTest, WebDialogViewClosedOnEscape) { … }
TEST_F(WebDialogViewUnitTest, WebDialogViewNotClosedOnEscape) { … }
TEST_F(WebDialogViewUnitTest, ObservableWebViewOnWebDialogViewClosed) { … }
TEST_F(WebDialogViewUnitTest, MetadataTest) { … }
}