chromium/chrome/browser/shell_integration_linux_unittest.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#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 {

// Provides mock environment variables values based on a stored map.
class MockEnvironment : public base::Environment {};

}  // namespace

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) {}

// The WM class name may be either capitalised or not, depending on the
// platform.
void CheckProgramClassClass(const std::string& class_name) {}

TEST(ShellIntegrationTest, WmClass) {}

TEST(ShellIntegrationTest, GetDesktopEntryStringValueFromFromDesktopFile) {}

}  // namespace shell_integration_linux