diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-12-21 01:48:04 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-01-08 13:07:12 +0200 |
commit | 26cfddaf47bfeacc2ef739c32c9de2eae94af787 (patch) | |
tree | e9bf20a943d3231e4bf0e684f7f17257ba58f9a9 /render-test/manifest_parser.hpp | |
parent | 4d815d83060bbf96e88022d685227b3363c557e0 (diff) | |
download | qtlocation-mapboxgl-26cfddaf47bfeacc2ef739c32c9de2eae94af787.tar.gz |
[render-test] Add access token to the test manifest
Needed if we want to run tests online. Will default to the
MAPBOX_ACCESS_TOKEN environment value.
Diffstat (limited to 'render-test/manifest_parser.hpp')
-rw-r--r-- | render-test/manifest_parser.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/render-test/manifest_parser.hpp b/render-test/manifest_parser.hpp index 55249896cb..120fb9a2bd 100644 --- a/render-test/manifest_parser.hpp +++ b/render-test/manifest_parser.hpp @@ -5,6 +5,7 @@ #include <mbgl/util/optional.hpp> #include <mbgl/util/rapidjson.hpp> +#include <cstdlib> #include <regex> #include <string> #include <utility> @@ -21,6 +22,7 @@ public: const std::string& getManifestPath() const; const std::string& getResultPath() const; const std::string& getCachePath() const; + const std::string& getAccessToken() const; const std::set<std::string>& getProbes() const; void doShuffle(uint32_t seed); @@ -49,6 +51,7 @@ private: std::string assetPath; std::string resultPath; std::string cachePath; + std::string accessToken; std::vector<std::pair<std::string, std::string>> ignores; std::vector<TestPaths> testPaths; std::set<std::string> probes; |