Lines Matching refs:string

44 static void LoadKeyFromFile(const std::string& file_name, Certificate* cert) {  in LoadKeyFromFile()
45 std::string testkey_string; in LoadKeyFromFile()
51 static void VerifyFile(const std::string& content, const std::vector<Certificate>& keys, in VerifyFile()
60 static void VerifyPackageWithCertificates(const std::string& name, in VerifyPackageWithCertificates()
62 std::string path = from_testdata_base(name); in VerifyPackageWithCertificates()
69 static void VerifyPackageWithSingleCertificate(const std::string& name, Certificate&& cert) { in VerifyPackageWithSingleCertificate()
75 static void BuildCertificateArchive(const std::vector<std::string>& file_names, int fd) { in BuildCertificateArchive()
80 std::string content; in BuildCertificateArchive()
84 std::string entry_name = name; in BuildCertificateArchive()
99 std::string testkey_string; in TEST()
219 std::string content; in TEST()
249 class VerifierTest : public testing::TestWithParam<std::vector<std::string>> {
252 std::vector<std::string> args = GetParam(); in SetUp()
253 std::string path = from_testdata_base(args[0]); in SetUp()
260 std::string public_key_file = from_testdata_base("testkey_" + *it + ".x509.pem"); in SetUp()
282 std::string package; in TEST()
284 ASSERT_EQ(std::string("\xc0\x06\xff\xff\xd2\x06", 6), package.substr(package.size() - 6, 6)); in TEST()
296 std::string package; in TEST()
301 std::string altered1(package); in TEST()
305 std::string altered2(package); in TEST()
316 std::string package = "\x50\x4b\x05\x06"s + std::string(12, '\0') + "\xff\xff\xff\xff\x00\x00"s; in TEST()
332 std::vector<std::string>({"otasigned_v1.zip", "v1"}),
333 std::vector<std::string>({"otasigned_v2.zip", "v2"}),
334 std::vector<std::string>({"otasigned_v3.zip", "v3"}),
335 std::vector<std::string>({"otasigned_v4.zip", "v4"}),
336 std::vector<std::string>({"otasigned_v5.zip", "v5"})));
340 std::vector<std::string>({"otasigned_v1.zip", "v1", "v2"}),
341 std::vector<std::string>({"otasigned_v2.zip", "v5", "v2"}),
342 std::vector<std::string>({"otasigned_v3.zip", "v5", "v1", "v3"}),
343 std::vector<std::string>({"otasigned_v4.zip", "v5", "v1", "v4"}),
344 std::vector<std::string>({"otasigned_v5.zip", "v4", "v1", "v5"})));
348 std::vector<std::string>({"otasigned_v1.zip", "v2"}),
349 std::vector<std::string>({"otasigned_v2.zip", "v1"}),
350 std::vector<std::string>({"otasigned_v3.zip", "v5"}),
351 std::vector<std::string>({"otasigned_v4.zip", "v5"}),
352 std::vector<std::string>({"otasigned_v5.zip", "v3"})));
356 std::vector<std::string>({"otasigned_v1.zip", "v3"}),
357 std::vector<std::string>({"otasigned_v2.zip", "v4"}),
358 std::vector<std::string>({"otasigned_v3.zip", "v1"}),
359 std::vector<std::string>({"otasigned_v4.zip", "v2"})));
363 std::vector<std::string>({"random.zip", "v1"}),
364 std::vector<std::string>({"fake-eocd.zip", "v1"})));