#include "chrome/browser/shortcuts/shortcut_creation_test_support.h"
#include <stdlib.h>
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/threading/thread_restrictions.h"
#include "chrome/browser/chrome_browser_main.h"
#include "chrome/browser/shell_integration_linux.h"
#include "chrome/browser/shortcuts/fake_linux_xdg_wrapper.h"
#include "chrome/browser/shortcuts/linux_xdg_wrapper.h"
#include "chrome/browser/shortcuts/shortcut_creation_test_support_linux.h"
#include "chrome/browser/shortcuts/shortcut_creator_linux.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "url/gurl.h"
namespace shortcuts {
namespace {
std::string GetDesktopEntry(const std::string& key,
const std::string& desktop_file_contents) { … }
}
namespace internal {
std::vector<std::string> ParseDesktopExecForCommandLine(const std::string& s) { … }
}
ShortcutCreationTestSupport::ShortcutCreationTestSupport() { … }
ShortcutCreationTestSupport::~ShortcutCreationTestSupport() = default;
void ShortcutCreationTestSupport::LaunchShortcut(const base::FilePath& path) { … }
bool ShortcutCreationTestSupport::ShortcutIsForUrl(
const base::FilePath& path,
const GURL& url,
testing::MatchResultListener* result_listener) { … }
bool ShortcutCreationTestSupport::ShortcutIsForProfile(
const base::FilePath& path,
const base::FilePath& profile_path,
testing::MatchResultListener* result_listener) { … }
bool ShortcutCreationTestSupport::ShortcutHasTitle(
const base::FilePath& path,
const std::u16string& title,
::testing::MatchResultListener* result_listener) { … }
}