xref: /aosp_15_r20/external/cronet/net/test/test_data_directory.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2012 The Chromium Authors
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 
10 namespace net {
11 
12 // Returns the FilePath object representing the absolute path of //net in the
13 // source tree.
14 base::FilePath GetTestNetDirectory();
15 
16 // Returns the FilePath object representing the absolute path in the source
17 // tree that contains net data files.
18 base::FilePath GetTestNetDataDirectory();
19 
20 // Returns the FilePath object representing the absolute path in the source
21 // tree that contains certificates for testing.
22 base::FilePath GetTestCertsDirectory();
23 
24 // Returns the base::FilePath to client certificate directory, relative to the
25 // source tree root. It should be used to set |client_authorities| list of a
26 // net::SSLConfig object. For all other uses, use GetTestCertsDirectory()
27 // instead.
28 base::FilePath GetTestClientCertsDirectory();
29 
30 // Returns the base::FilePath object representing the relative path containing
31 // resource files for testing WebSocket. Typically the FilePath will be used as
32 // document root argument for net::SpawnedTestServer with TYPE_WS or TYPE_WSS.
33 base::FilePath GetWebSocketTestDataDirectory();
34 
35 }  // namespace net
36 
37 #endif  // NET_TEST_TEST_DATA_DIRECTORY_H_
38