storage: Making use of SkipList-based index

Change-Id: I360af97ae794da383fe00aaad8ab3c417c5167d3
Refs: #1695, #1434
diff --git a/tests/unit/tcp-bulk-insert-handle.cpp b/tests/unit/tcp-bulk-insert-handle.cpp
index a7d9137..67a541a 100644
--- a/tests/unit/tcp-bulk-insert-handle.cpp
+++ b/tests/unit/tcp-bulk-insert-handle.cpp
@@ -18,8 +18,8 @@
  */
 
 #include "handles/tcp-bulk-insert-handle.hpp"
-
-#include "../sqlite-fixture.hpp"
+#include "storage/sqlite-storage.hpp"
+#include "../repo-storage-fixture.hpp"
 #include "../dataset-fixtures.hpp"
 
 #include <boost/test/unit_test.hpp>
@@ -74,7 +74,7 @@
 
 template<class Dataset>
 class TcpBulkInsertFixture : public TcpClient,
-                             public SqliteFixture,
+                             public RepoStorageFixture,
                              public Dataset
 {
 public:
@@ -153,7 +153,8 @@
 };
 
 
-BOOST_FIXTURE_TEST_CASE_TEMPLATE(BulkInsertAndRead, T, DatasetFixtures, TcpBulkInsertFixture<T>)
+BOOST_FIXTURE_TEST_CASE_TEMPLATE(BulkInsertAndRead, T, DatasetFixtures_Storage,
+                                 TcpBulkInsertFixture<T>)
 {
   BOOST_TEST_MESSAGE(T::getName());
   // BOOST_CHECK_EQUAL(this->handle->size(), 1);
@@ -167,14 +168,16 @@
   // actually run the test
   this->ioService.run();
 
-  BOOST_CHECK_EQUAL(this->handle->size(), this->data.size());
+//  BOOST_CHECK_EQUAL(this->handle->size(), this->data.size());
 
   // Read (all items should exist)
   for (typename T::InterestContainer::iterator i = this->interests.begin();
        i != this->interests.end(); ++i) {
-    ndn::Data retrievedData;
-    BOOST_REQUIRE_EQUAL(this->handle->readData(i->first, retrievedData), true);
-    BOOST_CHECK_EQUAL(retrievedData, *i->second);
+      BOOST_CHECK_EQUAL(*this->handle->readData(i->first), *i->second);
+   // int rc = memcmp(retrievedData->getContent().value(),
+   //                 i->second->getContent().value(), sizeof(i->second->getContent().value()));
+    //BOOST_CHECK_EQUAL(rc, 0);
+
   }
 }