1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef NET_TEST_TEST_DATA_DIRECTORY_H_
6#define NET_TEST_TEST_DATA_DIRECTORY_H_
7
8#include "base/files/file_path.h"
9
10namespace net {
11
12// Returns the FilePath object representing the absolute path in the source
13// tree that contains net data files.
14base::FilePath GetTestNetDataDirectory();
15
16// Returns the FilePath object representing the absolute path in the source
17// tree that contains certificates for testing.
18base::FilePath GetTestCertsDirectory();
19
20// Returns the base::FilePath to client certificate directory, relative to the
21// source tree root. It should be used to set |client_authorities| list of a
22// net::SSLConfig object. For all other uses, use GetTestCertsDirectory()
23// instead.
24base::FilePath GetTestClientCertsDirectory();
25
26// Returns the base::FilePath object representing the relative path containing
27// resource files for testing WebSocket. Typically the FilePath will be used as
28// document root argument for net::SpawnedTestServer with TYPE_WS or TYPE_WSS.
29base::FilePath GetWebSocketTestDataDirectory();
30
31} // namespace net
32
33#endif // NET_TEST_TEST_DATA_DIRECTORY_H_
34