#include "chrome/browser/ui/global_error/global_error_service.h"
#include <memory>
#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/global_error/global_error.h"
#include "chrome/browser/ui/global_error/global_error_bubble_view_base.h"
#include "chrome/browser/ui/global_error/global_error_service_factory.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_utils.h"
namespace {
class BubbleViewError final : public GlobalErrorWithStandardBubble { … };
}
class GlobalErrorServiceBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(GlobalErrorServiceBrowserTest, ShowBubbleView) { … }
IN_PROC_BROWSER_TEST_F(GlobalErrorServiceBrowserTest, CloseBubbleView) { … }
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#define MAYBE_BubbleViewDismissedOnRemove …
#else
#define MAYBE_BubbleViewDismissedOnRemove …
#endif
IN_PROC_BROWSER_TEST_F(GlobalErrorServiceBrowserTest,
MAYBE_BubbleViewDismissedOnRemove) { … }