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/DownloadHelperTest.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/DownloadHelperTest.cc')
| -rw-r--r-- | test/DownloadHelperTest.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/DownloadHelperTest.cc b/test/DownloadHelperTest.cc index 17fde9b7..1384c0fd 100644 --- a/test/DownloadHelperTest.cc +++ b/test/DownloadHelperTest.cc @@ -69,7 +69,7 @@ void DownloadHelperTest::testCreateRequestGroupForUri() "http://bravo/file", "http://charlie/file" }; - std::vector<std::string> uris(&array[0], &array[arrayLength(array)]); + std::vector<std::string> uris(vbegin(array), vend(array)); _option->put(PREF_SPLIT, "3"); _option->put(PREF_DIR, "/tmp"); _option->put(PREF_OUT, "file.out"); @@ -157,7 +157,7 @@ void DownloadHelperTest::testCreateRequestGroupForUri_parameterized() "http://{alpha, bravo}/file", "http://charlie/file" }; - std::vector<std::string> uris(&array[0], &array[arrayLength(array)]); + std::vector<std::string> uris(vbegin(array), vend(array)); _option->put(PREF_SPLIT, "3"); _option->put(PREF_DIR, "/tmp"); _option->put(PREF_OUT, "file.out"); @@ -193,7 +193,7 @@ void DownloadHelperTest::testCreateRequestGroupForUri_BitTorrent() "http://bravo/file", "http://charlie/file" }; - std::vector<std::string> uris(&array[0], &array[arrayLength(array)]); + std::vector<std::string> uris(vbegin(array), vend(array)); _option->put(PREF_SPLIT, "3"); _option->put(PREF_DIR, "/tmp"); _option->put(PREF_OUT, "file.out"); @@ -241,7 +241,7 @@ void DownloadHelperTest::testCreateRequestGroupForUri_Metalink() "http://charlie/file", "test.xml" }; - std::vector<std::string> uris(&array[0], &array[arrayLength(array)]); + std::vector<std::string> uris(vbegin(array), vend(array)); _option->put(PREF_SPLIT, "3"); _option->put(PREF_METALINK_SERVERS, "2"); _option->put(PREF_DIR, "/tmp"); @@ -329,7 +329,7 @@ void DownloadHelperTest::testCreateRequestGroupForBitTorrent() "http://charlie/file" }; - std::vector<std::string> auxURIs(&array[0], &array[arrayLength(array)]); + std::vector<std::string> auxURIs(vbegin(array), vend(array)); _option->put(PREF_SPLIT, "5"); _option->put(PREF_TORRENT_FILE, "test.torrent"); _option->put(PREF_DIR, "/tmp"); |
