mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:40:05 +00:00
Directory listing
This commit is contained in:
parent
b9fc22d63e
commit
d5d9285736
6 changed files with 337 additions and 0 deletions
28
test/source/scwx/network/dir_list.test.cpp
Normal file
28
test/source/scwx/network/dir_list.test.cpp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#include <scwx/network/dir_list.hpp>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace network
|
||||
{
|
||||
|
||||
static const std::string& kDefaultUrl {"https://warnings.allisonhouse.com"};
|
||||
static const std::string& kAlternateUrl {"http://warnings.cod.edu"};
|
||||
|
||||
TEST(DirList, GetDefaultUrl)
|
||||
{
|
||||
auto records = DirList(kDefaultUrl);
|
||||
|
||||
EXPECT_GT(records.size(), 0);
|
||||
}
|
||||
|
||||
TEST(DirList, GetAlternateUrl)
|
||||
{
|
||||
auto records = DirList(kAlternateUrl);
|
||||
|
||||
EXPECT_GT(records.size(), 0);
|
||||
}
|
||||
|
||||
} // namespace network
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue