Lines Matching refs:path
88 // Reads the content of the file at the given |path|. On success, returns true
90 std::pair<bool, std::string> ReadFile(const std::string& path);
91 std::pair<bool, std::vector<std::uint32_t> > ReadSpvBinaryFile(const std::string& path);
93 // Writes the given |contents| into the file at the given |path|. Returns true
95 bool WriteFile(const std::string& path, const std::string& contents);
120 // Tries to load the contents from the file at the given |path|. On success,
122 void tryLoadFile(const std::string& path, const std::string& tag,
126 std::tie(fileReadOk, *contents) = ReadFile(path);
127 ASSERT_TRUE(fileReadOk) << "Cannot open " << tag << " file: " << path;
130 // Tries to load the contents from the file at the given |path|. On success,
132 void tryLoadSpvFile(const std::string& path, const std::string& tag,
136 std::tie(fileReadOk, contents) = ReadSpvBinaryFile(path);
137 ASSERT_TRUE(fileReadOk) << "Cannot open " << tag << " file: " << path;