#include "chrome/browser/ui/views/extensions/settings_overridden_dialog.h"
#include <optional>
#include "base/memory/raw_ptr.h"
#include "chrome/browser/ui/extensions/extensions_dialogs.h"
#include "chrome/browser/ui/extensions/settings_overridden_dialog_controller.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/test_with_browser_view.h"
#include "ui/views/test/widget_test.h"
#include "ui/views/widget/any_widget_observer.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/dialog_delegate.h"
DialogResult;
namespace {
struct DialogState { … };
class TestDialogController : public SettingsOverriddenDialogController { … };
}
class SettingsOverriddenDialogViewUnitTest : public TestWithBrowserView { … };
TEST_F(SettingsOverriddenDialogViewUnitTest, DialogResult_ChangeSettingsBack) { … }
TEST_F(SettingsOverriddenDialogViewUnitTest, DialogResult_KeepNewSettings) { … }
TEST_F(SettingsOverriddenDialogViewUnitTest, DialogResult_DismissDialog) { … }
TEST_F(SettingsOverriddenDialogViewUnitTest, DialogResult_CloseParentWidget) { … }