[core] Remove private header includes from CLI utilities

This commit is contained in:
Konstantin Käfer
2017-03-21 14:41:08 +01:00
parent 9b39013ce4
commit 68e032e505
7 changed files with 8 additions and 44 deletions

View File

@@ -6,24 +6,6 @@
using namespace mbgl::util;
TEST(URL, isURL) {
EXPECT_TRUE(isURL("mapbox://foo"));
EXPECT_TRUE(isURL("mapbox://"));
EXPECT_TRUE(isURL("mapbox-test-scheme://foo"));
EXPECT_TRUE(isURL("mapbox+style://foo"));
EXPECT_TRUE(isURL("mapbox-2.0://foo"));
EXPECT_TRUE(isURL("mapbox99://foo"));
EXPECT_FALSE(isURL("mapbox:/"));
EXPECT_FALSE(isURL(" mapbox://"));
EXPECT_FALSE(isURL("://"));
EXPECT_FALSE(isURL("mapbox"));
EXPECT_FALSE(isURL("mapbox:foo"));
EXPECT_FALSE(isURL("mapbox:/foo"));
EXPECT_FALSE(isURL("test/mapbox://foo"));
EXPECT_FALSE(isURL("123://foo"));
}
TEST(URL, Scheme) {
EXPECT_EQ(URL::Segment({ 0, 4 }), URL("http://example.com/test?query=foo").scheme);
EXPECT_EQ(URL::Segment({ 0, 4 }), URL("http://127.0.0.1:8080/test?query=foo").scheme);