summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-03-21 14:41:08 +0100
committerKonstantin Käfer <mail@kkaefer.com>2017-03-28 13:53:19 +0200
commit68e032e505e23811aec1f6079995709b3d2b9700 (patch)
tree80296f3dd19cc2855d4d364659d5ee58921ba11b /test
parent9b39013ce4c6f98590b80ced425e0a3bcdb3f77f (diff)
downloadqtlocation-mapboxgl-68e032e505e23811aec1f6079995709b3d2b9700.tar.gz
[core] Remove private header includes from CLI utilities
Diffstat (limited to 'test')
-rw-r--r--test/util/url.test.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/util/url.test.cpp b/test/util/url.test.cpp
index ca24a5949a..55d8af2811 100644
--- a/test/util/url.test.cpp
+++ b/test/util/url.test.cpp
@@ -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);