Lines Matching refs:string

76   std::string source_file;
77 std::string source_sha1;
80 std::string target_file;
81 std::string target_sha1;
84 std::string bad_sha1_a;
85 std::string bad_sha1_b;
138 Value patch(Value::Type::BLOB, std::string(patch_fc.data.cbegin(), patch_fc.data.cend())); in TEST_F()
142 Value bonus(Value::Type::BLOB, std::string(bonus_fc.data.cbegin(), bonus_fc.data.cend())); in TEST_F()
152 Value patch(Value::Type::BLOB, std::string(patch_fc.data.cbegin(), patch_fc.data.cend())); in TEST_F()
162 static std::vector<std::string> FindFilesInDir(const std::string& dirname) { in FindFilesInDir()
163 std::vector<std::string> file_list; in FindFilesInDir()
168 std::string path = dirname + "/" + de->d_name; in FindFilesInDir()
180 void AddFilesToDir(const std::string& dir, const std::vector<std::string>& files) { in AddFilesToDir()
181 std::string zeros(4096, 0); in AddFilesToDir()
201 static size_t MockFreeSpaceChecker(const std::string& dirname) { in MockFreeSpaceChecker()
202 std::vector<std::string> files = FindFilesInDir(dirname); in MockFreeSpaceChecker()
210 std::vector<std::string> temporary_files_;
214 std::vector<std::string> files = { "file1", "file2", "file3" }; in TEST_F()
221 ASSERT_EQ(std::vector<std::string>{ "file3" }, FindFilesInDir(mock_cache.path)); in TEST_F()
226 std::vector<std::string> files{ "file1", "file2", "file3" }; in TEST_F()
232 RemoveFilesInDirectory(4096 * 9, mock_cache.path, [](const std::string&) { return -1; })); in TEST_F() argument
236 std::vector<std::string> files = { "file1", "file2" }; in TEST_F()
241 std::string file1_path = mock_cache.path + "/file1"s; in TEST_F()
247 ASSERT_EQ(std::vector<std::string>{ "file1" }, FindFilesInDir(mock_cache.path)); in TEST_F()
251 std::vector<std::string> log_files = { "last_log", "last_log.1", "last_kmsg.2", "last_log.5", in TEST_F()
259 std::vector<std::string> expected = { "last_log", "last_log.1" }; in TEST_F()
265 std::vector<std::string> log_files = { "last_log.1", "last_kmsg.1", "last_log.not_number", in TEST_F()
274 std::vector<std::string> expected = { "last_log.1" }; in TEST_F()
280 std::vector<std::string> log_files = { "last_install", "command", "block.map", "last_log", in TEST_F()
288 std::vector<std::string> expected = { "block.map", "command", "last_install" }; in TEST_F()