chromium/chrome/browser/ui/views/privacy_sandbox/privacy_sandbox_dialog_view_browsertest.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 =;

}  // namespace

class PrivacySandboxDialogViewBrowserTest : public DialogBrowserTest {};

// TODO(crbug.com/41484188): Re-enable the test.
IN_PROC_BROWSER_TEST_F(PrivacySandboxDialogViewBrowserTest,
                       DISABLED_InvokeUi_Consent) {}

// TODO(crbug.com/325436918): Re-enable the test.
IN_PROC_BROWSER_TEST_F(PrivacySandboxDialogViewBrowserTest,
                       DISABLED_InvokeUi_Notice) {}

// TODO(crbug.com/333163287): Re-enable the test.
#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) {}