catchunks: refactor in preparation for CUBIC pipeline.
Rename AIMD pipeline to "Adaptive Pipeline".
Remove "aimd-" from command line options.
Change-Id: Ie5689cf3c0b90bedb322fd42dbf289f8a04e56d2
refs: #4861
diff --git a/tests/chunks/pipeline-interests-fixture.hpp b/tests/chunks/pipeline-interests-fixture.hpp
index 0d456c3..dc7eabd 100644
--- a/tests/chunks/pipeline-interests-fixture.hpp
+++ b/tests/chunks/pipeline-interests-fixture.hpp
@@ -47,7 +47,7 @@
void
setPipeline(unique_ptr<PipelineInterests> pline)
{
- pipeline = std::move(pline);
+ m_pipeline = std::move(pline);
}
shared_ptr<Data>
@@ -72,18 +72,20 @@
void
run(const Name& name, uint64_t version = 0)
{
- pipeline->run(Name(name).appendVersion(version),
- [] (const Data&) {},
- [this] (const std::string&) { hasFailed = true; });
+ m_pipeline->run(Name(name).appendVersion(version),
+ [] (const Data&) {},
+ [this] (const std::string&) { hasFailed = true; });
}
protected:
boost::asio::io_service io;
util::DummyClientFace face{io};
- unique_ptr<PipelineInterests> pipeline;
Name name{"/ndn/chunks/test"};
uint64_t nDataSegments = 0;
bool hasFailed = false;
+
+private:
+ unique_ptr<PipelineInterests> m_pipeline;
};
} // namespace tests