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.
5 #include "net/base/test_data_directory.h"
7 #include "base/base_paths.h"
8 #include "base/path_service.h"
13 const base::FilePath::CharType kCertificateRelativePath
[] =
14 FILE_PATH_LITERAL("net/data/ssl/certificates");
17 base::FilePath
GetTestCertsDirectory() {
18 base::FilePath src_root
;
19 PathService::Get(base::DIR_SOURCE_ROOT
, &src_root
);
20 return src_root
.Append(kCertificateRelativePath
);
23 base::FilePath
GetTestClientCertsDirectory() {
24 #if defined(OS_ANDROID)
25 return base::FilePath(kCertificateRelativePath
);
27 return GetTestCertsDirectory();
31 base::FilePath
GetWebSocketTestDataDirectory() {
32 base::FilePath
data_dir(FILE_PATH_LITERAL("net/data/websocket"));