Lines Matching refs:file_content_
39 std::string file_content_; // actual bytes of the package file. member in PackageTest
54 ASSERT_TRUE(android::base::ReadFileToString(temp_file_.path, &file_content_)); in SetUp()
66 std::vector<uint8_t> buffer(file_content_.size()); in TEST_F()
67 ASSERT_TRUE(package->ReadFullyAtOffset(buffer.data(), file_content_.size(), 0)); in TEST_F()
68 ASSERT_EQ(file_content_, std::string(buffer.begin(), buffer.end())); in TEST_F()
70 ASSERT_TRUE(package->ReadFullyAtOffset(buffer.data(), file_content_.size() - 10, 10)); in TEST_F()
71 ASSERT_EQ(file_content_.substr(10), std::string(buffer.begin(), buffer.end() - 10)); in TEST_F()
77 std::vector<uint8_t> buffer(file_content_.size()); in TEST_F()
79 ASSERT_FALSE(package->ReadFullyAtOffset(buffer.data(), file_content_.size(), 10)); in TEST_F()
85 uint64_t hash_size = file_content_.size() / 2; in TEST_F()
87 SHA1(reinterpret_cast<uint8_t*>(file_content_.data()), hash_size, expected_sha.data()); in TEST_F()