From 9ef65440b6bfd2c8da17d2613f8c967682cc0ef9 Mon Sep 17 00:00:00 2001 From: Tobrun Date: Thu, 15 Sep 2016 22:01:09 -0700 Subject: [core] [android] - public api configurable base endpoint (#6309) add runloop to test --- test/storage/online_file_source.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/storage') diff --git a/test/storage/online_file_source.cpp b/test/storage/online_file_source.cpp index f67d96f257..b832f9c339 100644 --- a/test/storage/online_file_source.cpp +++ b/test/storage/online_file_source.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include @@ -403,3 +404,13 @@ TEST(OnlineFileSource, TEST_REQUIRES_SERVER(RateLimitDefault)) { loop.run(); } + +TEST(OnlineFileSource, ChangeAPIBaseURL){ + util::RunLoop loop; + OnlineFileSource fs; + + EXPECT_EQ(mbgl::util::API_BASE_URL, fs.getAPIBaseURL()); + const std::string customURL = "test.domain"; + fs.setAPIBaseURL(customURL); + EXPECT_EQ(customURL, fs.getAPIBaseURL()); +} \ No newline at end of file -- cgit v1.2.1