Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1164)

Side by Side Diff: net/base/test_data_directory.cc

Issue 17385010: OpenSSL/NSS implementation of ProofVerfifier. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved error_details and generation_counter into QuicCryptoClientStream. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/test_data_directory.h" 5 #include "net/base/test_data_directory.h"
6 6
7 #include "base/base_paths.h" 7 #include "base/base_paths.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 namespace { 12 namespace {
13 const base::FilePath::CharType kCertificateRelativePath[] = 13 const base::FilePath::CharType kCertificateRelativePath[] =
14 FILE_PATH_LITERAL("net/data/ssl/certificates"); 14 FILE_PATH_LITERAL("net/data/ssl/certificates");
15
16 const base::FilePath::CharType kQuicCertificateRelativePath[] =
17 FILE_PATH_LITERAL("net/quic/crypto/testdata");
15 } // namespace 18 } // namespace
16 19
17 base::FilePath GetTestCertsDirectory() { 20 base::FilePath GetTestCertsDirectory() {
18 base::FilePath src_root; 21 base::FilePath src_root;
19 PathService::Get(base::DIR_SOURCE_ROOT, &src_root); 22 PathService::Get(base::DIR_SOURCE_ROOT, &src_root);
20 return src_root.Append(kCertificateRelativePath); 23 return src_root.Append(kCertificateRelativePath);
21 } 24 }
22 25
23 base::FilePath GetTestClientCertsDirectory() { 26 base::FilePath GetTestClientCertsDirectory() {
24 #if defined(OS_ANDROID) 27 #if defined(OS_ANDROID)
25 return base::FilePath(kCertificateRelativePath); 28 return base::FilePath(kCertificateRelativePath);
26 #else 29 #else
27 return GetTestCertsDirectory(); 30 return GetTestCertsDirectory();
28 #endif 31 #endif
29 } 32 }
30 33
31 base::FilePath GetWebSocketTestDataDirectory() { 34 base::FilePath GetWebSocketTestDataDirectory() {
32 base::FilePath data_dir(FILE_PATH_LITERAL("net/data/websocket")); 35 base::FilePath data_dir(FILE_PATH_LITERAL("net/data/websocket"));
33 return data_dir; 36 return data_dir;
34 } 37 }
35 38
39 base::FilePath GetQuicTestCertsDirectory() {
40 base::FilePath src_root;
41 PathService::Get(base::DIR_SOURCE_ROOT, &src_root);
42 return src_root.Append(kQuicCertificateRelativePath);
43 }
44
36 } // namespace net 45 } // namespace net
OLDNEW
« no previous file with comments | « net/base/test_data_directory.h ('k') | net/net.gyp » ('j') | net/quic/crypto/crypto_handshake.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698