Home | History | Annotate | Download | only in component

Lines Matching defs:package

42     std::string package = from_testdata_base(args[0]);
43 if (!memmap.MapFile(package)) {
44 FAIL() << "Failed to mmap " << package << ": " << strerror(errno) << "\n";
128 std::string package;
129 ASSERT_TRUE(android::base::ReadFileToString(from_testdata_base("otasigned_v3.zip"), &package));
130 ASSERT_EQ(std::string("\xc0\x06\xff\xff\xd2\x06", 6), package.substr(package.size() - 6, 6));
133 package[package.size() - 5] = '\x05';
135 verify_file(reinterpret_cast<const unsigned char*>(package.data()), package.size(),
147 std::string package;
148 ASSERT_TRUE(android::base::ReadFileToString(from_testdata_base("otasigned_v3.zip"), &package));
149 ASSERT_GT(package.size(), static_cast<size_t>(100));
152 std::string altered1(package);
158 std::string altered2(package);
175 std::string package = "\x50\x4b\x05\x06"s + std::string(12, '\0') + "\xff\xff\xff\xff\x00\x00"s;
176 ASSERT_EQ(VERIFY_FAILURE, verify_file(reinterpret_cast<const unsigned char*>(package.data()),
177 package.size(), certs));