diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-17 17:11:32 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-17 17:11:32 +0000 |
| commit | 41fc6e366ad3de85704c35961beaf539ab9ceb8b (patch) | |
| tree | 22c68206025af06f3915650d5feece76e57cbfc0 /test/certificates_test.cc | |
| parent | 394abae7986abf4438184a712f16dfbe3c2734da (diff) | |
namespace libdcp -> dcp.
Diffstat (limited to 'test/certificates_test.cc')
| -rw-r--r-- | test/certificates_test.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/certificates_test.cc b/test/certificates_test.cc index 0a66bc66..690afa77 100644 --- a/test/certificates_test.cc +++ b/test/certificates_test.cc @@ -25,15 +25,15 @@ using boost::shared_ptr; BOOST_AUTO_TEST_CASE (certificates) { - libdcp::CertificateChain c; + dcp::CertificateChain c; - c.add (shared_ptr<libdcp::Certificate> (new libdcp::Certificate (boost::filesystem::path ("test/ref/crypt/ca.self-signed.pem")))); - c.add (shared_ptr<libdcp::Certificate> (new libdcp::Certificate (boost::filesystem::path ("test/ref/crypt/intermediate.signed.pem")))); - c.add (shared_ptr<libdcp::Certificate> (new libdcp::Certificate (boost::filesystem::path ("test/ref/crypt/leaf.signed.pem")))); + c.add (shared_ptr<dcp::Certificate> (new dcp::Certificate (boost::filesystem::path ("test/ref/crypt/ca.self-signed.pem")))); + c.add (shared_ptr<dcp::Certificate> (new dcp::Certificate (boost::filesystem::path ("test/ref/crypt/intermediate.signed.pem")))); + c.add (shared_ptr<dcp::Certificate> (new dcp::Certificate (boost::filesystem::path ("test/ref/crypt/leaf.signed.pem")))); - list<shared_ptr<libdcp::Certificate> > leaf_to_root = c.leaf_to_root (); + list<shared_ptr<dcp::Certificate> > leaf_to_root = c.leaf_to_root (); - list<shared_ptr<libdcp::Certificate> >::iterator i = leaf_to_root.begin (); + list<shared_ptr<dcp::Certificate> >::iterator i = leaf_to_root.begin (); /* Leaf */ BOOST_CHECK_EQUAL (*i, c.leaf ()); @@ -78,6 +78,6 @@ BOOST_AUTO_TEST_CASE (certificates) ); /* Check that reconstruction from a string works */ - libdcp::Certificate test (c.root()->certificate (true)); + dcp::Certificate test (c.root()->certificate (true)); BOOST_CHECK_EQUAL (test.certificate(), c.root()->certificate()); } |
