Searched refs:validPaths (Results 1 - 4 of 4) sorted by relevance
/developtools/profiler/device/base/test/unittest/ |
H A D | common_test.cpp | 109 std::vector<std::string> validPaths = {};
in HWTEST_F() local 110 EXPECT_TRUE(VerifyPath(filePath, validPaths));
in HWTEST_F() 112 validPaths = { "/tmp/" };
in HWTEST_F() 113 EXPECT_FALSE(VerifyPath(filePath, validPaths));
in HWTEST_F() 115 validPaths = { "/tmp/", "/data/" };
in HWTEST_F() 116 EXPECT_TRUE(VerifyPath(filePath, validPaths));
in HWTEST_F() 118 validPaths = { "/tmp/", "/data/local/tmp/" };
in HWTEST_F() 119 EXPECT_TRUE(VerifyPath(filePath, validPaths));
in HWTEST_F() 122 validPaths = { "/tmp/", "/data/local/tmp/" };
in HWTEST_F() 123 EXPECT_FALSE(VerifyPath(filePath, validPaths));
in HWTEST_F() 138 std::vector<std::string> validPaths = { "/tmp/" }; HWTEST_F() local [all...] |
/developtools/profiler/device/base/include/ |
H A D | common.h | 41 bool VerifyPath(const std::string& filePath, const std::vector<std::string>& validPaths); 42 bool ReadFile(const std::string& filePath, const std::vector<std::string>& validPaths, std::string& fileContent);
|
/developtools/profiler/device/base/src/ |
H A D | common.cpp | 544 bool VerifyPath(const std::string& filePath, const std::vector<std::string>& validPaths) in VerifyPath() argument 546 if (validPaths.size() == 0) { in VerifyPath() 550 for (const std::string& path : validPaths) { in VerifyPath() 568 std::vector<std::string> validPaths; in RealPath() local 571 if (validPaths.size() == 0) { in RealPath() 574 validPaths.pop_back(); in RealPath() 577 validPaths.emplace_back(pathName); in RealPath() 581 for (const std::string &pathName : validPaths) { in RealPath() 589 bool ReadFile(const std::string &filePath, const std::vector<std::string>& validPaths, std::string& fileContent) in ReadFile() argument 596 CHECK_TRUE(VerifyPath(realFilePathStr, validPaths), fals in ReadFile() [all...] |
/developtools/profiler/device/cmds/src/ |
H A D | main.cpp | 514 std::vector<std::string> validPaths = { "/data/local/tmp/" }; in ParseConfig() local 515 if (!COMMON::ReadFile(configFileWithPath, validPaths, config)) { in ParseConfig()
|
Completed in 4 milliseconds