Lines Matching refs:read
45 void testWriteAndReadSanity(SideEffects write, SideEffects read) { in testWriteAndReadSanity() argument
47 EXPECT_FALSE(read.DoesNothing()); in testWriteAndReadSanity()
51 EXPECT_FALSE(read.DoesAnyWrite()); in testWriteAndReadSanity()
52 EXPECT_TRUE(read.DoesAnyRead()); in testWriteAndReadSanity()
58 EXPECT_FALSE(all.MayDependOn(read)); in testWriteAndReadSanity()
59 EXPECT_TRUE(read.MayDependOn(all)); in testWriteAndReadSanity()
65 EXPECT_FALSE(none.MayDependOn(read)); in testWriteAndReadSanity()
66 EXPECT_FALSE(read.MayDependOn(none)); in testWriteAndReadSanity()
69 void testWriteAndReadDependence(SideEffects write, SideEffects read) { in testWriteAndReadDependence() argument
70 testWriteAndReadSanity(write, read); in testWriteAndReadDependence()
73 EXPECT_FALSE(write.MayDependOn(read)); in testWriteAndReadDependence()
74 EXPECT_TRUE(read.MayDependOn(write)); in testWriteAndReadDependence()
77 void testNoWriteAndReadDependence(SideEffects write, SideEffects read) { in testNoWriteAndReadDependence() argument
78 testWriteAndReadSanity(write, read); in testNoWriteAndReadDependence()
81 EXPECT_FALSE(write.MayDependOn(read)); in testNoWriteAndReadDependence()
82 EXPECT_FALSE(read.MayDependOn(write)); in testNoWriteAndReadDependence()