summaryrefslogtreecommitdiff
path: root/test/text/glyph_manager.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/text/glyph_manager.test.cpp')
-rw-r--r--test/text/glyph_manager.test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/text/glyph_manager.test.cpp b/test/text/glyph_manager.test.cpp
index 1e9aef38ed..d87e5cda76 100644
--- a/test/text/glyph_manager.test.cpp
+++ b/test/text/glyph_manager.test.cpp
@@ -5,7 +5,7 @@
#include <mbgl/util/run_loop.hpp>
#include <mbgl/util/string.hpp>
#include <mbgl/util/i18n.hpp>
-#include <mbgl/util/io.hpp>
+#include <mapbox/io.hpp>
#include <mbgl/util/logging.hpp>
using namespace mbgl;
@@ -92,7 +92,7 @@ TEST(GlyphManager, LoadingSuccess) {
test.fileSource.glyphsResponse = [&] (const Resource& resource) {
EXPECT_EQ(Resource::Kind::Glyphs, resource.kind);
Response response;
- response.data = std::make_shared<std::string>(util::read_file("test/fixtures/resources/glyphs.pbf"));
+ response.data = std::make_shared<std::string>(*mapbox::base::io::readFile("test/fixtures/resources/glyphs.pbf"));
return response;
};
@@ -260,7 +260,7 @@ TEST(GlyphManager, LoadLocalCJKGlyphAfterLoadingRangeFromURL) {
test.fileSource.glyphsResponse = [&] (const Resource&) {
firstGlyphResponse = true;
Response response;
- response.data = std::make_shared<std::string>(util::read_file("test/fixtures/resources/glyphs-12244-12543.pbf"));
+ response.data = std::make_shared<std::string>(*mapbox::base::io::readFile("test/fixtures/resources/glyphs-12244-12543.pbf"));
return response;
};
@@ -311,7 +311,7 @@ TEST(GlyphManager, LoadingInvalid) {
test.fileSource.glyphsResponse = [&] (const Resource& resource) {
EXPECT_EQ(Resource::Kind::Glyphs, resource.kind);
Response response;
- response.data = std::make_shared<std::string>(util::read_file("test/fixtures/resources/fake_glyphs-0-255.pbf"));
+ response.data = std::make_shared<std::string>(*mapbox::base::io::readFile("test/fixtures/resources/fake_glyphs-0-255.pbf"));
return response;
};
@@ -371,7 +371,7 @@ TEST(GlyphManager, ImmediateFileSource) {
test.fileSource.glyphsResponse = [&] (const Resource&) {
Response response;
- response.data = std::make_shared<std::string>(util::read_file("test/fixtures/resources/glyphs.pbf"));
+ response.data = std::make_shared<std::string>(*mapbox::base::io::readFile("test/fixtures/resources/glyphs.pbf"));
return response;
};