Lines Matching refs:str

137         err.str("");  in SetUp()
138 out.str(""); in SetUp()
175 EXPECT_THAT(out.str(), StrEq("android.hardware.tests.inheritance@1.0::IChild\nfoo\nbar")); in TEST_F()
176 EXPECT_THAT(err.str(), IsEmpty()); in TEST_F()
183 EXPECT_THAT(out.str(), StrEq("android.hardware.tests.inheritance@1.0::IChild\nbaz\nquux")); in TEST_F()
184 EXPECT_THAT(err.str(), IsEmpty()); in TEST_F()
191 EXPECT_THAT(err.str(), HasSubstr("does not exist")); in TEST_F()
198 EXPECT_THAT(out.str(), StrEq("android.hardware.tests.inheritance@1.0::IChild\ncalling parent")); in TEST_F()
199 EXPECT_THAT(err.str(), IsEmpty()); in TEST_F()
206 EXPECT_THAT(out.str(), IsEmpty()); in TEST_F()
207 EXPECT_THAT(err.str(), IsEmpty()); in TEST_F()
272 EXPECT_EQ("", err.str()); in TEST_F()
287 EXPECT_EQ("", err.str()); in TEST_F()
292 EXPECT_THAT(err.str(), HasSubstr("--neat should not be used with --debug.")); in TEST_F()
507 auto output = out.str(); in TEST_F()
511 EXPECT_EQ("", err.str()); in TEST_F()
514 EXPECT_EQ(true, vintf::gHalManifestConverter(&m, out.str())) in TEST_F()
540 EXPECT_EQ(expected, out.str()); in TEST_F()
541 EXPECT_EQ("", err.str()); in TEST_F()
564 EXPECT_EQ(expected, out.str()); in TEST_F()
565 EXPECT_EQ("", err.str()); in TEST_F()
588 EXPECT_EQ(expected, out.str()); in TEST_F()
589 EXPECT_EQ("", err.str()); in TEST_F()
612 EXPECT_EQ(expected, out.str()); in TEST_F()
613 EXPECT_EQ("", err.str()); in TEST_F()
627 EXPECT_EQ(expected, out.str()); in TEST_F()
628 EXPECT_EQ("", err.str()); in TEST_F()
641 EXPECT_EQ(expected, out.str()); in TEST_F()
642 EXPECT_EQ("", err.str()); in TEST_F()
666 EXPECT_EQ(expected, out.str()); in TEST_F()
667 EXPECT_EQ("", err.str()); in TEST_F()
685 EXPECT_EQ(expected, out.str()); in TEST_F()
686 EXPECT_EQ("", err.str()); in TEST_F()
705 EXPECT_EQ(expected, out.str()); in TEST_F()
706 EXPECT_EQ("", err.str()); in TEST_F()
712 EXPECT_THAT(err.str(), HasSubstr("Unrecognized HAL type: a")); in TEST_F()
792 EXPECT_THAT(out.str(), HasSubstr(expected)); in TEST_F()
793 EXPECT_EQ("", err.str()); in TEST_F()
877 EXPECT_EQ(expected, out.str()); in TEST_F()
878 EXPECT_EQ("", err.str()); in TEST_F()
914 EXPECT_THAT(out.str(), HasSubstr("a.h.bar1@1.0::IBar/1 declared hwbinder ?")); in TEST_F()
915 EXPECT_THAT(out.str(), HasSubstr("a.h.bar2@2.0::IBar/2 declared passthrough 32+64")); in TEST_F()
916 EXPECT_THAT(out.str(), HasSubstr("a.h.foo1@1.0::IFoo/1 declared hwbinder ?")); in TEST_F()
917 EXPECT_EQ("", err.str()); in TEST_F()
923 EXPECT_THAT(out.str(), HasSubstr("a.h.bar1@1.0::IBar/1 declared hwbinder ?")); in TEST_F()
924 EXPECT_THAT(out.str(), HasSubstr("a.h.bar2@2.0::IBar/2 declared passthrough 32+64")); in TEST_F()
925 EXPECT_EQ("", err.str()); in TEST_F()
931 EXPECT_THAT(out.str(), Not(HasSubstr("IBar"))); in TEST_F()
932 EXPECT_EQ("", err.str()); in TEST_F()
949 std::string errStr = err.str(); in TEST_F()
959 err.str(""); in TEST_F()
961 EXPECT_EQ(errStr, err.str()) << "`lshal help` should have the same output as `lshal --help`"; in TEST_F()
963 err.str(""); in TEST_F()
965 EXPECT_THAT(err.str(), ContainsRegex("unrecognized option")); in TEST_F()
966 EXPECT_THAT(err.str(), EndsWith(errStr)) in TEST_F()
968 EXPECT_EQ("", out.str()); in TEST_F()
973 EXPECT_THAT(err.str(), ContainsRegex("(^|\n)list:($|\n)")) in TEST_F()
979 EXPECT_THAT(err.str(), ContainsRegex("unrecognized option")); in TEST_F()
980 EXPECT_THAT(err.str(), ContainsRegex("(^|\n)list:($|\n)")) in TEST_F()
982 EXPECT_EQ("", out.str()); in TEST_F()
987 EXPECT_THAT(err.str(), ContainsRegex("(^|\n)help:($|\n)")) in TEST_F()
993 EXPECT_THAT(err.str(), ContainsRegex("(^|\n)help:($|\n)")) in TEST_F()
995 EXPECT_EQ("", out.str()); in TEST_F()