15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef NET_BASE_TEST_DATA_DIRECTORY_H_
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define NET_BASE_TEST_DATA_DIRECTORY_H_
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
82a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#include "base/files/file_path.h"
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace net {
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Returns the FilePath object representing the absolute path in the source
135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// tree that contains certificates for testing.
142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)base::FilePath GetTestCertsDirectory();
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
162a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Returns the base::FilePath object representing the path to client
172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// certificate files to be used in the |client_authorities| list
182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// of a net::SSLConfig object. For all other uses, use
192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// GetTestCertsDirectory() instead.
202a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)base::FilePath GetTestClientCertsDirectory();
212a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Returns the base::FilePath object representing the relative path containing
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// resource files for testing WebSocket. Typically the FilePath will be used as
24c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// document root argument for net::SpawnedTestServer with TYPE_WS or TYPE_WSS.
252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)base::FilePath GetWebSocketTestDataDirectory();
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace net
285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // NET_BASE_TEST_DATA_DIRECTORY_H_
30