diff options
Diffstat (limited to 'chromium/net/base/test_data_directory.h')
-rw-r--r-- | chromium/net/base/test_data_directory.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/chromium/net/base/test_data_directory.h b/chromium/net/base/test_data_directory.h new file mode 100644 index 00000000000..9f1a84d369a --- /dev/null +++ b/chromium/net/base/test_data_directory.h @@ -0,0 +1,29 @@ +// 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 NET_BASE_TEST_DATA_DIRECTORY_H_ +#define NET_BASE_TEST_DATA_DIRECTORY_H_ + +#include "base/files/file_path.h" + +namespace net { + +// Returns the FilePath object representing the absolute path in the source +// tree that contains certificates for testing. +base::FilePath GetTestCertsDirectory(); + +// Returns the base::FilePath object representing the path to client +// certificate files to be used in the |client_authorities| list +// of a net::SSLConfig object. For all other uses, use +// GetTestCertsDirectory() instead. +base::FilePath GetTestClientCertsDirectory(); + +// Returns the base::FilePath object representing the relative path containing +// resource files for testing WebSocket. Typically the FilePath will be used as +// document root argument for net::SpawnedTestServer with TYPE_WS or TYPE_WSS. +base::FilePath GetWebSocketTestDataDirectory(); + +} // namespace net + +#endif // NET_BASE_TEST_DATA_DIRECTORY_H_ |