#include "chrome/browser/ui/test/test_browser_dialog.h"
#include <set>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/stl_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "ash/shell.h"
#endif
#if BUILDFLAG(IS_MAC)
#include "chrome/browser/ui/test/test_browser_dialog_mac.h"
#endif
#if defined(TOOLKIT_VIEWS)
#include "base/strings/strcat.h"
#include "third_party/abseil-cpp/absl/cleanup/cleanup.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
#include "ui/views/test/widget_test.h"
#endif
namespace {
#if defined(TOOLKIT_VIEWS)
class WidgetCloser { … };
#endif
}
TestBrowserDialog::TestBrowserDialog() = default;
TestBrowserDialog::~TestBrowserDialog() = default;
void TestBrowserDialog::PreShow() { … }
void TestBrowserDialog::ShowAndVerifyUi() { … }
bool TestBrowserDialog::VerifyUi() { … }
void TestBrowserDialog::WaitForUserDismissal() { … }
void TestBrowserDialog::DismissUi() { … }
bool TestBrowserDialog::AlwaysCloseAsynchronously() { … }
std::string TestBrowserDialog::GetNonDialogName() { … }
void TestBrowserDialog::UpdateWidgets() { … }