major change: Add security support & Adjust GUI
Change-Id: I7abef37169dec1ef4b68e760dee5214c147c1915
diff --git a/test/test-contact-storage.cc b/test/test-contact-storage.cc
new file mode 100644
index 0000000..12b2a54
--- /dev/null
+++ b/test/test-contact-storage.cc
@@ -0,0 +1,35 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
+/**
+ * Copyright (C) 2013 Regents of the University of California.
+ * @author: Yingdi Yu <yingdi@cs.ucla.edu>
+ * See COPYING for copyright and distribution information.
+ */
+
+#include <boost/test/unit_test.hpp>
+
+#include "contact-storage.h"
+#include <cryptopp/hex.h>
+#include <cryptopp/sha.h>
+#include <cryptopp/files.h>
+#include <boost/filesystem.hpp>
+
+using namespace ndn;
+namespace fs = boost::filesystem;
+
+BOOST_AUTO_TEST_SUITE(TestContactStorage)
+
+const std::string dbName("chronos-20e9530008b27c661ad3429d1956fa1c509b652dce9273bfe81b7c91819c272c.db");
+
+BOOST_AUTO_TEST_CASE(InitializeTable)
+{
+ Name identity("/TestContactStorage/InitializeTable");
+
+ chronos::ContactStorage contactStorage(identity);
+ fs::path dbPath = fs::path(getenv("HOME")) / ".chronos" / dbName;
+
+ BOOST_CHECK(boost::filesystem::exists(dbPath));
+}
+
+
+
+BOOST_AUTO_TEST_SUITE_END()