Lines Matching refs:cap
60 CapturedStdout cap; in TEST() local
63 cap.Stop(); in TEST()
66 ASSERT_EQ("This should be captured.\n", cap.str()); in TEST()
68 cap.Start(); in TEST()
71 cap.Stop(); in TEST()
72 ASSERT_EQ("This should be captured.\nAnd this text should be captured too.\n", cap.str()); in TEST()
76 cap.Reset(); in TEST()
77 cap.Start(); in TEST()
80 ASSERT_EQ("Only this will be captured.\n", cap.str()); in TEST()
84 CapturedStderr cap; in TEST() local
86 cap.Stop(); in TEST()
88 ASSERT_EQ("This should be captured.\n", cap.str()); in TEST()
90 cap.Start(); in TEST()
92 cap.Stop(); in TEST()
93 ASSERT_EQ("This should be captured.\nAnd this text should be captured too.\n", cap.str()); in TEST()
96 cap.Reset(); in TEST()
97 cap.Start(); in TEST()
99 ASSERT_EQ("Only this will be captured.\n", cap.str()); in TEST()