test_data_directory.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. #ifndef NET_TEST_TEST_DATA_DIRECTORY_H_
  5. #define NET_TEST_TEST_DATA_DIRECTORY_H_
  6. #include "base/files/file_path.h"
  7. namespace net {
  8. // Returns the FilePath object representing the absolute path of //net in the
  9. // source tree.
  10. base::FilePath GetTestNetDirectory();
  11. // Returns the FilePath object representing the absolute path in the source
  12. // tree that contains net data files.
  13. base::FilePath GetTestNetDataDirectory();
  14. // Returns the FilePath object representing the absolute path in the source
  15. // tree that contains certificates for testing.
  16. base::FilePath GetTestCertsDirectory();
  17. // Returns the base::FilePath to client certificate directory, relative to the
  18. // source tree root. It should be used to set |client_authorities| list of a
  19. // net::SSLConfig object. For all other uses, use GetTestCertsDirectory()
  20. // instead.
  21. base::FilePath GetTestClientCertsDirectory();
  22. // Returns the base::FilePath object representing the relative path containing
  23. // resource files for testing WebSocket. Typically the FilePath will be used as
  24. // document root argument for net::SpawnedTestServer with TYPE_WS or TYPE_WSS.
  25. base::FilePath GetWebSocketTestDataDirectory();
  26. } // namespace net
  27. #endif // NET_TEST_TEST_DATA_DIRECTORY_H_