Lines Matching refs:string
39 std::string err; in TEST()
48 ASSERT_EQ(std::string(reinterpret_cast<const char*>(&boot), sizeof(boot)), in TEST()
49 std::string(reinterpret_cast<const char*>(&boot_verify), sizeof(boot_verify))); in TEST()
54 std::vector<std::string> options = { "option1", "option2" }; in TEST()
66 ASSERT_EQ("boot-recovery", std::string(boot.command)); in TEST()
67 std::string expected = "recovery\n" + android::base::Join(options, "\n") + "\n"; in TEST()
68 ASSERT_EQ(expected, std::string(boot.recovery)); in TEST()
71 ASSERT_EQ("status bytes", std::string(boot.status)); in TEST()
72 ASSERT_EQ("stage bytes", std::string(boot.stage)); in TEST()
73 ASSERT_EQ("reserved bytes", std::string(boot.reserved)); in TEST()
78 std::vector<std::string> options; in TEST()
85 ASSERT_EQ("boot-recovery", std::string(boot.command)); in TEST()
86 ASSERT_EQ("recovery\n", std::string(boot.recovery)); in TEST()
89 ASSERT_EQ(std::string(sizeof(boot.status), '\0'), std::string(boot.status, sizeof(boot.status))); in TEST()
90 ASSERT_EQ(std::string(sizeof(boot.stage), '\0'), std::string(boot.stage, sizeof(boot.stage))); in TEST()
91 ASSERT_EQ(std::string(sizeof(boot.reserved), '\0'), in TEST()
92 std::string(boot.reserved, sizeof(boot.reserved))); in TEST()
97 std::vector<std::string> options; in TEST()
107 std::string expected = "recovery\n" + android::base::Join(options, "\n") + "\n"; in TEST()
111 ASSERT_EQ("boot-recovery", std::string(boot.command)); in TEST()
112 ASSERT_EQ(expected.substr(0, sizeof(boot.recovery) - 1), std::string(boot.recovery)); in TEST()
116 ASSERT_EQ(std::string(sizeof(boot.status), '\0'), std::string(boot.status, sizeof(boot.status))); in TEST()
117 ASSERT_EQ(std::string(sizeof(boot.stage), '\0'), std::string(boot.stage, sizeof(boot.stage))); in TEST()
118 ASSERT_EQ(std::string(sizeof(boot.reserved), '\0'), in TEST()
119 std::string(boot.reserved, sizeof(boot.reserved))); in TEST()