#include "ui/web_dialogs/web_dialog_delegate.h"
#include "base/test/bind.h"
#include "content/public/browser/web_ui_message_handler.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ui {
namespace {
WebDialogDelegateTest;
class TestMessageHandler : public content::WebUIMessageHandler { … };
TEST(WebDialogDelegateTest, MessageHandlerOwnershipIsPassed) { … }
TEST(WebDialogDelegateTest, CallbackOnClose) { … }
class DeletionTestWebDialogDelegate : public WebDialogDelegate { … };
TEST(WebDialogDelegateTest, DeleteOnClose) { … }
TEST(WebDialogDelegateTest, NoDeleteOnClose) { … }
TEST(WebDialogDelegateTest, AcceleratorsAreHandled) { … }
}
}