diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-20 18:32:09 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-20 18:32:09 +0100 |
commit | faa8c03b69464f31fb419f7e4e4c4c1bd2e6907f (patch) | |
tree | 94dd1b59a5c8c1bceb68dc545a72d0952d6f1502 /src/plugins/filesystem/FileLocator.hpp | |
parent | 8755bbe309d2f00c7bc73a6a6304ed8860a9a94d (diff) |
Adapted FileLocator unit tests, searching in the "UNKNOWN" ResourceType search paths directly in ResoruceLocator instead of Registry
Diffstat (limited to 'src/plugins/filesystem/FileLocator.hpp')
-rw-r--r-- | src/plugins/filesystem/FileLocator.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/filesystem/FileLocator.hpp b/src/plugins/filesystem/FileLocator.hpp index 6d3bbf0..16fa3f7 100644 --- a/src/plugins/filesystem/FileLocator.hpp +++ b/src/plugins/filesystem/FileLocator.hpp @@ -122,6 +122,17 @@ public: void addDefaultSearchPaths(); /** + * Adds a search path for a unit test. This function should not be used + * outside the code in the "test" folder. + * + * @param subdir is the subdirectory in the "testdata" directory that should + * be added. + * @param type is a single type for which the path should be added. + */ + void addUnittestSearchPath(const std::string &subdir, + ResourceType type = ResourceType::UNKNOWN); + + /** * Returns the backing map containing all search paths for a given type. * This is read-only. */ |