chromium/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views_browsertest.cc

// Copyright 2017 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/apps/app_info_dialog/app_info_dialog_views.h"

#include <memory>
#include <string>

#include "base/functional/callback_helpers.h"
#include "base/test/bind.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/test_extension_environment.h"
#include "chrome/browser/ui/apps/app_info_dialog.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/test/base/testing_profile.h"
#include "content/public/test/browser_test.h"

class AppInfoDialogBrowserTest : public DialogBrowserTest {};

// Invokes a dialog that shows details of an installed extension.
// Flaky on ChromeOS. See https://crbug.com/1485666
#if BUILDFLAG(IS_CHROMEOS)
#define MAYBE_InvokeUi_default
#else
#define MAYBE_InvokeUi_default
#endif
IN_PROC_BROWSER_TEST_F(AppInfoDialogBrowserTest, MAYBE_InvokeUi_default) {}

// Flaky on ChromeOS. See https://crbug.com/1484928
#if BUILDFLAG(IS_CHROMEOS)
#define MAYBE_CreateShortcutsAfterExtensionUnloaded
#else
#define MAYBE_CreateShortcutsAfterExtensionUnloaded
#endif
IN_PROC_BROWSER_TEST_F(AppInfoDialogBrowserTest,
                       MAYBE_CreateShortcutsAfterExtensionUnloaded) {}