switch to ndn-cxx KeyChain v2

refs #4089

Change-Id: I32bc19db156de49275b681ef67f684b76631d50b
diff --git a/tests/identity-management-fixture.hpp b/tests/identity-management-fixture.hpp
index 318cdd1..c9d054b 100644
--- a/tests/identity-management-fixture.hpp
+++ b/tests/identity-management-fixture.hpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /**
- * Copyright (c) 2014-2016,  Regents of the University of California,
+ * Copyright (c) 2014-2017,  Regents of the University of California,
  *                           Arizona Board of Regents,
  *                           Colorado State University,
  *                           University Pierre & Marie Curie, Sorbonne University,
@@ -32,14 +32,14 @@
 namespace nfd {
 namespace tests {
 
-/** \brief a fixture that cleans up KeyChain identities and certificate files upon destruction
+/** \brief a fixture providing an in-memory KeyChain
  */
 class IdentityManagementFixture : public virtual BaseFixture
 {
 public:
   IdentityManagementFixture();
 
-  /** \brief deletes created identities and saved certificate files
+  /** \brief deletes saved certificate files
    */
   ~IdentityManagementFixture();
 
@@ -48,7 +48,7 @@
    */
   bool
   addIdentity(const Name& identity,
-              const ndn::KeyParams& params = ndn::KeyChain::DEFAULT_KEY_PARAMS);
+              const ndn::KeyParams& params = ndn::KeyChain::getDefaultKeyParams());
 
   /** \brief save identity certificate to a file
    *  \param identity identity name
@@ -63,7 +63,6 @@
   ndn::KeyChain m_keyChain;
 
 private:
-  std::vector<ndn::Name> m_identities;
   std::vector<std::string> m_certFiles;
 };