comparison UnitTestsSources/ServerIndexTests.cpp @ 1134:ba9fd42284d0

preparing storage plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Sep 2014 12:53:49 +0200
parents 790ff7a5b3bf
children 8f9d49192815
comparison
equal deleted inserted replaced
1133:382e162c074c 1134:ba9fd42284d0
571 { 571 {
572 const std::string path = "UnitTestsStorage"; 572 const std::string path = "UnitTestsStorage";
573 573
574 Toolbox::RemoveFile(path + "/index"); 574 Toolbox::RemoveFile(path + "/index");
575 FilesystemStorage storage(path); 575 FilesystemStorage storage(path);
576 ServerContext context(storage, ":memory:"); // The SQLite DB is in memory 576 ServerContext context(":memory:"); // The SQLite DB is in memory
577 context.SetStorageArea(storage);
577 ServerIndex& index = context.GetIndex(); 578 ServerIndex& index = context.GetIndex();
578 579
579 index.SetMaximumStorageSize(10); 580 index.SetMaximumStorageSize(10);
580 581
581 Json::Value tmp; 582 Json::Value tmp;