summaryrefslogtreecommitdiff
path: root/render-test/file_source.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-01-03 16:01:40 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-01-08 13:07:12 +0200
commitf0d2a2f636bf45889cf8082ba42e0d22875c1e3a (patch)
tree342ff7d577d03c68cb5b56a5f19a0105a0ad5a4c /render-test/file_source.hpp
parent26cfddaf47bfeacc2ef739c32c9de2eae94af787 (diff)
downloadqtlocation-mapboxgl-f0d2a2f636bf45889cf8082ba42e0d22875c1e3a.tar.gz
[render-test] Effectively use the offline cache for fixtures
Diffstat (limited to 'render-test/file_source.hpp')
-rw-r--r--render-test/file_source.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/render-test/file_source.hpp b/render-test/file_source.hpp
index 58acf7b6ad..34ba739a22 100644
--- a/render-test/file_source.hpp
+++ b/render-test/file_source.hpp
@@ -6,22 +6,26 @@ namespace mbgl {
class ProxyFileSource : public DefaultFileSource {
public:
- ProxyFileSource(const std::string& cachePath, const std::string& assetPath, bool supportCacheOnlyRequests = true);
- ProxyFileSource(const std::string& cachePath,
- std::unique_ptr<FileSource>&& assetFileSource,
- bool supportCacheOnlyRequests = true);
+ ProxyFileSource(const std::string& cachePath, const std::string& assetPath);
~ProxyFileSource();
std::unique_ptr<AsyncRequest> request(const Resource&, Callback);
/**
+ * @brief Flag to change the networking mode of the file source.
+ */
+ static void setOffline(bool);
+
+ /**
* @brief Starts/stops metrics tracking.
*/
static void setTrackingActive(bool);
+
/**
* @brief Returns metrics tracking status.
*/
static bool isTrackingActive();
+
/**
* @brief Returns the total amount of requests.
*