diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-03-25 13:51:10 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-03-25 13:51:10 +0000 |
| commit | f15d22b6195aeeef6a16bf2c5b5501d55b285349 (patch) | |
| tree | d996c8dc4a4066ccde9c1ece9295e8e309d54304 /test/HttpRequestTest.cc | |
| parent | 8477e463e90dcce164c6a1712b37a0906b547948 (diff) | |
2010-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added vbegin() and vend() for fixed sized array.
* src/DownloadHandlerConstants.cc
* src/FeatureConfig.cc
* src/OptionHandlerFactory.cc
* src/ServerStat.cc
* src/TimeA2.cc
* src/XmlRpcMethod.cc
* src/array_fun.h
* src/download_helper.cc
* src/messageDigest.cc
* src/util.cc
* test/BittorrentHelperTest.cc
* test/DHTRoutingTableDeserializerTest.cc
* test/DHTRoutingTableSerializerTest.cc
* test/DefaultBtAnnounceTest.cc
* test/DefaultBtProgressInfoFileTest.cc
* test/DownloadContextTest.cc
* test/DownloadHelperTest.cc
* test/FeatureConfigTest.cc
* test/FeedbackURISelectorTest.cc
* test/HttpRequestTest.cc
* test/InOrderURISelectorTest.cc
* test/MSEHandshakeTest.cc
* test/MultiDiskAdaptorTest.cc
* test/MultiFileAllocationIteratorTest.cc
* test/PriorityPieceSelectorTest.cc
* test/RequestGroupManTest.cc
* test/UtilTest.cc
* test/XmlRpcMethodTest.cc
* test/a2algoTest.cc
* test/array_funTest.cc
Diffstat (limited to 'test/HttpRequestTest.cc')
| -rw-r--r-- | test/HttpRequestTest.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/HttpRequestTest.cc b/test/HttpRequestTest.cc index 8160637d..5ef923f0 100644 --- a/test/HttpRequestTest.cc +++ b/test/HttpRequestTest.cc @@ -690,8 +690,7 @@ void HttpRequestTest::testAddAcceptType() httpRequest.disableContentEncoding(); httpRequest.setRequest(request); httpRequest.setAuthConfigFactory(_authConfigFactory, _option.get()); - httpRequest.addAcceptType(&acceptTypes[0], - &acceptTypes[arrayLength(acceptTypes)]); + httpRequest.addAcceptType(vbegin(acceptTypes), vend(acceptTypes)); std::string expectedText = "GET /archives/aria2-1.0.0.tar.bz2 HTTP/1.1\r\n" |
