~ubuntu-branches/ubuntu/wily/aria2/wily-proposed

« back to all changes in this revision

Viewing changes to test/MagnetTest.cc

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry, Kartik Mistry, Patrick Ruckstuhl
  • Date: 2013-09-22 18:52:14 UTC
  • mfrom: (2.5.19 sid)
  • Revision ID: package-import@ubuntu.com-20130922185214-upeu2ljgeqi7e7oo
Tags: 1.18.0-1
[ Kartik Mistry ]
* New upstream release.
* debian/control:
  + (really) Set priority to optional from extra (Closes: #697659).
  + wrap-and-sort some fields.

[ Patrick Ruckstuhl ]
* debian/rules:
  + Allow parallel building (Closes: #720977)
* debian/tests, debian/control:
  + autopkgtest infrastructure

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
CPPUNIT_TEST_SUITE_REGISTRATION(MagnetTest);
22
22
 
23
23
namespace {
24
 
const std::string& nthStr(const SharedHandle<ValueBase>& v, size_t index)
 
24
const std::string& nthStr(const ValueBase* v, size_t index)
25
25
{
26
26
  return downcast<String>(downcast<List>(v)->get(index))->s();
27
27
}
29
29
 
30
30
void MagnetTest::testParse()
31
31
{
32
 
  SharedHandle<Dict> r = parse
 
32
  auto r = parse
33
33
    ("magnet:?xt=urn:btih:248d0a1cd08284299de78d5c1ed359bb46717d8c&dn=aria2"
34
34
     "&tr=http%3A%2F%2Ftracker1&tr=http://tracker2");
35
35
  CPPUNIT_ASSERT_EQUAL