mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
This commit is contained in:
parent
126a4bde61
commit
07d270c87e
709 changed files with 6305 additions and 6878 deletions
|
@ -20,13 +20,13 @@ CPPUNIT_TEST_SUITE_REGISTRATION(DHTTaskExecutorTest);
|
|||
|
||||
void DHTTaskExecutorTest::testUpdate()
|
||||
{
|
||||
SharedHandle<DHTNode> rn;
|
||||
std::shared_ptr<DHTNode> rn;
|
||||
DHTTaskExecutor tex(2);
|
||||
SharedHandle<MockDHTTask> tasks[] = {
|
||||
SharedHandle<MockDHTTask>(new MockDHTTask(rn)),
|
||||
SharedHandle<MockDHTTask>(new MockDHTTask(rn)),
|
||||
SharedHandle<MockDHTTask>(new MockDHTTask(rn)),
|
||||
SharedHandle<MockDHTTask>(new MockDHTTask(rn))
|
||||
std::shared_ptr<MockDHTTask> tasks[] = {
|
||||
std::shared_ptr<MockDHTTask>(new MockDHTTask(rn)),
|
||||
std::shared_ptr<MockDHTTask>(new MockDHTTask(rn)),
|
||||
std::shared_ptr<MockDHTTask>(new MockDHTTask(rn)),
|
||||
std::shared_ptr<MockDHTTask>(new MockDHTTask(rn))
|
||||
};
|
||||
tasks[1]->finished_ = true;
|
||||
for(size_t i = 0; i < A2_ARRAY_LEN(tasks); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue