~ubuntu-branches/ubuntu/quantal/aria2/quantal

« back to all changes in this revision

Viewing changes to test/TestUtil.cc

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2010-11-24 12:26:31 UTC
  • mfrom: (1.6.1 upstream) (2.3.8 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124122631-upujekj1ek94h3x2
Tags: 1.10.6-1
* New upstream release:
  + Fixed FTBFS on alpha arch (Closes: #590257)
  + Added IPv6 support (Closes: #448390)
* debian/patches/ftbfs_kfreebsd.diff:
  + Dropped, merged upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#include "File.h"
13
13
#include "StringFormat.h"
14
14
#include "FatalException.h"
 
15
#include "Cookie.h"
15
16
 
16
17
namespace aria2 {
17
18
 
45
46
  return ss.str();
46
47
}
47
48
 
48
 
};
 
49
Cookie createCookie
 
50
(const std::string& name,
 
51
 const std::string& value,
 
52
 const std::string& domain,
 
53
 bool hostOnly,
 
54
 const std::string& path,
 
55
 bool secure)
 
56
{
 
57
  return Cookie
 
58
    (name, value, 0, false, domain, hostOnly, path, secure, false, 0);
 
59
}
 
60
 
 
61
Cookie createCookie
 
62
(const std::string& name,
 
63
 const std::string& value,
 
64
 time_t expiryTime,
 
65
 const std::string& domain,
 
66
 bool hostOnly,
 
67
 const std::string& path,
 
68
 bool secure)
 
69
{
 
70
  return Cookie
 
71
    (name, value, expiryTime, true, domain, hostOnly, path, secure, false, 0);
 
72
}
 
73
 
 
74
} // namespace aria2