Lines Matching refs:cap
48 CapturedStdout cap; in TEST() local
50 cap.Stop(); in TEST()
52 ASSERT_EQ("This should be captured.\n", cap.str()); in TEST()
54 cap.Start(); in TEST()
56 cap.Stop(); in TEST()
57 ASSERT_EQ("This should be captured.\nAnd this text should be captured too.\n", cap.str()); in TEST()
60 cap.Reset(); in TEST()
61 cap.Start(); in TEST()
63 ASSERT_EQ("Only this will be captured.\n", cap.str()); in TEST()
67 CapturedStderr cap; in TEST() local
69 cap.Stop(); in TEST()
71 ASSERT_EQ("This should be captured.\n", cap.str()); in TEST()
73 cap.Start(); in TEST()
75 cap.Stop(); in TEST()
76 ASSERT_EQ("This should be captured.\nAnd this text should be captured too.\n", cap.str()); in TEST()
79 cap.Reset(); in TEST()
80 cap.Start(); in TEST()
82 ASSERT_EQ("Only this will be captured.\n", cap.str()); in TEST()