#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/shell_integration_linux.h"
#include <stddef.h>
#include <algorithm>
#include <cstdlib>
#include <map>
#include <optional>
#include <string_view>
#include <vector>
#include "base/base_paths.h"
#include "base/command_line.h"
#include "base/containers/contains.h"
#include "base/environment.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/path_service.h"
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_path_override.h"
#include "build/branding_buildflags.h"
#include "chrome/browser/web_applications/os_integration/web_app_shortcut.h"
#include "chrome/browser/web_applications/web_app_helpers.h"
#include "chrome/common/chrome_constants.h"
#include "components/services/app_service/public/cpp/file_handler.h"
#include "components/webapps/common/web_app_id.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/ozone/public/ozone_platform.h"
#include "url/gurl.h"
ElementsAre;
namespace shell_integration_linux {
namespace {
class MockEnvironment : public base::Environment { … };
}
TEST(ShellIntegrationTest, GetExistingShortcutContents) { … }
TEST(ShellIntegrationTest, GetExistingProfileShortcutFilenames) { … }
TEST(ShellIntegrationTest, GetUniqueWebShortcutFilenameFromUrl) { … }
TEST(ShellIntegrationTest, GetUniqueWebShortcutFilename) { … }
TEST(ShellIntegrationTest, GetUniqueWebShortcutUnique) { … }
TEST(ShellIntegrationTest, GetDesktopFileContents) { … }
TEST(ShellIntegrationTest, GetDesktopFileContentsForApps) { … }
TEST(ShellIntegrationTest, GetDirectoryFileContents) { … }
TEST(ShellIntegrationTest, GetMimeTypesRegistrationFilename) { … }
TEST(ShellIntegrationTest, GetMimeTypesRegistrationFileContents) { … }
void CheckProgramClassClass(const std::string& class_name) { … }
TEST(ShellIntegrationTest, WmClass) { … }
TEST(ShellIntegrationTest, GetDesktopEntryStringValueFromFromDesktopFile) { … }
}