Lines Matching full:hash
109 // Write data to the file and detach it, and calculate its sha256 hash.
115 std::string hash;
116 base_file_->GetSha256Hash(&hash);
118 base::HexEncode(hash.data(), hash.size()));
157 std::string hash;
158 EXPECT_FALSE(base_file_->GetSha256Hash(&hash));
162 // Write data to the file once and calculate its sha256 hash.
168 std::string hash;
169 base_file_->GetSha256Hash(&hash);
171 base::HexEncode(hash.data(), hash.size()));
174 // Write data to the file multiple times and calculate its sha256 hash.
176 std::string hash;
182 // no hash before Finish() is called either.
183 EXPECT_FALSE(base_file_->GetSha256Hash(&hash));
186 EXPECT_TRUE(base_file_->GetSha256Hash(&hash));
188 base::HexEncode(hash.data(), hash.size()));