Index: remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc |
diff --git a/remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc b/remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc |
index 5af52998b9b0ae82f3ea5299ba2ed6affcbaab60..49e4c1e34bc74a33657869f441a39718919ec6cf 100644 |
--- a/remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc |
+++ b/remoting/protocol/ssl_hmac_channel_authenticator_unittest.cc |
@@ -10,6 +10,7 @@ |
#include "base/message_loop.h" |
#include "base/path_service.h" |
#include "crypto/rsa_private_key.h" |
+#include "net/base/cert_test_util.h" |
#include "net/base/net_errors.h" |
#include "remoting/protocol/connection_tester.h" |
#include "remoting/protocol/fake_session.h" |
@@ -45,12 +46,7 @@ class SslHmacChannelAuthenticatorTest : public testing::Test { |
protected: |
virtual void SetUp() OVERRIDE { |
- FilePath certs_dir; |
- PathService::Get(base::DIR_SOURCE_ROOT, &certs_dir); |
- certs_dir = certs_dir.AppendASCII("net"); |
- certs_dir = certs_dir.AppendASCII("data"); |
- certs_dir = certs_dir.AppendASCII("ssl"); |
- certs_dir = certs_dir.AppendASCII("certificates"); |
+ FilePath certs_dir(net::GetTestCertsDirectory()); |
FilePath cert_path = certs_dir.AppendASCII("unittest.selfsigned.der"); |
ASSERT_TRUE(file_util::ReadFileToString(cert_path, &host_cert_)); |