#include "chrome/browser/enterprise/data_controls/desktop_data_controls_dialog.h"
#include "base/functional/callback_helpers.h"
#include "chrome/browser/enterprise/data_controls/desktop_data_controls_dialog_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "content/public/test/browser_test.h"
#include "ui/base/mojom/dialog_button.mojom.h"
namespace data_controls {
namespace {
class DesktopDataControlsDialogUiTest
: public DialogBrowserTest,
public testing::WithParamInterface<DataControlsDialog::Type> { … };
class DesktopDataControlsDialogTest : public InProcessBrowserTest,
public DesktopDataControlsDialog::TestObserver { … };
}
IN_PROC_BROWSER_TEST_P(DesktopDataControlsDialogUiTest, DefaultUi) { … }
INSTANTIATE_TEST_SUITE_P(…);
IN_PROC_BROWSER_TEST_F(DesktopDataControlsDialogTest, ShowDialogMultipleTimes) { … }
IN_PROC_BROWSER_TEST_F(DesktopDataControlsDialogTest,
ShowDialogMultipleTimes_DifferentTypes) { … }
IN_PROC_BROWSER_TEST_F(DesktopDataControlsDialogTest,
ShowDialogMultipleTimes_DifferentWebContents) { … }
}