mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
31 lines
969 B
C++
31 lines
969 B
C++
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef BASE_TEST_TEST_SHORTCUT_WIN_H_
|
|
#define BASE_TEST_TEST_SHORTCUT_WIN_H_
|
|
|
|
#include "base/files/file_path.h"
|
|
#include "base/win/shortcut.h"
|
|
|
|
// Windows shortcut functions used only by tests.
|
|
|
|
namespace base {
|
|
namespace win {
|
|
|
|
// Validates |actual_path|'s LongPathName case-insensitively matches
|
|
// |expected_path|'s LongPathName.
|
|
void ValidatePathsAreEqual(const base::FilePath& expected_path,
|
|
const base::FilePath& actual_path);
|
|
|
|
// Validates that a shortcut exists at |shortcut_path| with the expected
|
|
// |properties|.
|
|
// Logs gtest failures on failed verifications.
|
|
void ValidateShortcut(const FilePath& shortcut_path,
|
|
const ShortcutProperties& properties);
|
|
|
|
} // namespace win
|
|
} // namespace base
|
|
|
|
#endif // BASE_TEST_TEST_SHORTCUT_WIN_H_
|