#include <string>
#include "base/base_paths.h"
#include "base/path_service.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/scoped_path_override.h"
#include "base/test/test_future.h"
#include "chrome/browser/platform_util_internal.h"
#include "chrome/browser/shortcuts/create_shortcut_for_current_web_contents_task.h"
#include "chrome/browser/shortcuts/shortcut_creator.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/common/chrome_features.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/test/browser_test.h"
#include "ui/gfx/image/image_skia.h"
namespace shortcuts {
namespace {
constexpr char kPageWithIcons[] = …;
class ShortcutCreationBrowserTest : public InProcessBrowserTest { … };
IN_PROC_BROWSER_TEST_F(ShortcutCreationBrowserTest,
CannotStackTasksSameWebContents) { … }
#if BUILDFLAG(IS_LINUX)
#define MAYBE_WebContentsNavigatedAway …
#else
#define MAYBE_WebContentsNavigatedAway …
#endif
IN_PROC_BROWSER_TEST_F(ShortcutCreationBrowserTest,
MAYBE_WebContentsNavigatedAway) { … }
IN_PROC_BROWSER_TEST_F(ShortcutCreationBrowserTest, VisibilityChangeStopsTask) { … }
}
}