Home | History | Annotate | Download | only in samples

Lines Matching full:water

51 class Water {
53 // Normal Water declarations go here.
55 // operator new and operator delete help us control water allocation.
72 int Water::allocated_ = 0;
74 // This event listener monitors how many Water objects are created and
75 // destroyed by each test, and reports a failure if a test leaks some Water
76 // objects. It does this by comparing the number of live Water objects at
82 initially_allocated_ = Water::allocated();
87 int difference = Water::allocated() - initially_allocated_;
93 << "Leaked " << difference << " unit(s) of Water!";
100 Water* water = new Water;
101 delete water;
107 Water* water = new Water;
108 EXPECT_TRUE(water != NULL);