summaryrefslogtreecommitdiffstats
path: root/sandbox/tests/common/test_utils.h
blob: 9e1766076edaac3abe36c72a40b27b10908ef7f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 2006-2010 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 SANDBOX_TESTS_COMMON_TEST_UTILS_H_
#define SANDBOX_TESTS_COMMON_TEST_UTILS_H_

#include <windows.h>

// Sets a reparse point. |source| will now point to |target|. Returns true if
// the call succeeds, false otherwise.
bool SetReparsePoint(HANDLE source, const wchar_t* target);

// Delete the reparse point referenced by |source|. Returns true if the call
// succeeds, false otherwise.
bool DeleteReparsePoint(HANDLE source);

#endif  // SANDBOX_TESTS_COMMON_TEST_UTILS_H_