#include "chrome/browser/ui/views/privacy_sandbox/privacy_sandbox_dialog_view.h"
#include "base/test/run_until.h"
#include "build/build_config.h"
#include "chrome/browser/privacy_sandbox/mock_privacy_sandbox_service.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_service.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/privacy_sandbox/privacy_sandbox_prompt.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "ui/views/widget/any_widget_observer.h"
#include "ui/views/widget/widget.h"
namespace {
constexpr int kAverageBrowserWidth = …;
constexpr int kAverageBrowserHeight = …;
}
class PrivacySandboxDialogViewBrowserTest : public DialogBrowserTest { … };
IN_PROC_BROWSER_TEST_F(PrivacySandboxDialogViewBrowserTest,
DISABLED_InvokeUi_Consent) { … }
IN_PROC_BROWSER_TEST_F(PrivacySandboxDialogViewBrowserTest,
DISABLED_InvokeUi_Notice) { … }
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
#define MAYBE_InvokeUi_RestrictedNotice …
#else
#define MAYBE_InvokeUi_RestrictedNotice …
#endif
IN_PROC_BROWSER_TEST_F(PrivacySandboxDialogViewBrowserTest,
MAYBE_InvokeUi_RestrictedNotice) { … }