Searched refs:validPaths (Results 1 – 4 of 4) sorted by relevance
| /developtools/profiler/device/base/test/unittest/ |
| D | common_test.cpp | 110 std::vector<std::string> validPaths = {}; variable 111 EXPECT_TRUE(VerifyPath(filePath, validPaths)); 113 validPaths = { "/tmp/" }; 114 EXPECT_FALSE(VerifyPath(filePath, validPaths)); 116 validPaths = { "/tmp/", "/data/" }; 117 EXPECT_TRUE(VerifyPath(filePath, validPaths)); 119 validPaths = { "/tmp/", "/data/local/tmp/" }; 120 EXPECT_TRUE(VerifyPath(filePath, validPaths)); 123 validPaths = { "/tmp/", "/data/local/tmp/" }; 124 EXPECT_FALSE(VerifyPath(filePath, validPaths)); [all …]
|
| /developtools/profiler/device/base/include/ |
| D | common.h | 38 bool VerifyPath(const std::string& filePath, const std::vector<std::string>& validPaths); 39 bool ReadFile(const std::string& filePath, const std::vector<std::string>& validPaths, std::string&…
|
| /developtools/profiler/device/base/src/ |
| D | common.cpp | 424 bool VerifyPath(const std::string& filePath, const std::vector<std::string>& validPaths) in VerifyPath() argument 426 if (validPaths.size() == 0) { in VerifyPath() 430 for (const std::string& path : validPaths) { in VerifyPath() 438 bool ReadFile(const std::string &filePath, const std::vector<std::string>& validPaths, std::string&… in ReadFile() argument 445 …CHECK_TRUE(VerifyPath(realFilePathStr, validPaths), false, "Fail to VerifyPath: %s", realFilePathS… in ReadFile()
|
| /developtools/profiler/device/cmds/src/ |
| D | main.cpp | 450 std::vector<std::string> validPaths = { "/data/local/tmp/" }; in ParseConfig() local 451 if (!COMMON::ReadFile(configFileWithPath, validPaths, config)) { in ParseConfig()
|