Home | History | Annotate | Download | only in base

Lines Matching defs:copies

39   // Particularly important in this test to ensure no copies are made.
51 // Particularly important in this test to ensure no copies are made.
95 // Used for probing the number of copies that occur if a type must be coerced
98 DerivedCopyCounter(int* copies, int* assigns)
99 : copies_(copies), assigns_(assigns) {
105 // Used for probing the number of copies in an argument.
108 CopyCounter(int* copies, int* assigns)
109 : copies_(copies), assigns_(assigns) {
118 // Probing for copies from coercion.
136 int copies() const {
194 return counter.copies();
670 int copies = 0;
672 CopyCounter counter(&copies, &assigns);
676 EXPECT_EQ(0, copies);
818 int copies = 0;
821 CopyCounter counter(&copies, &assigns);
825 EXPECT_GE(1, copies);
828 copies = 0;
833 EXPECT_GE(1, copies);
836 copies = 0;
838 DerivedCopyCounter derived(&copies, &assigns);
842 EXPECT_GE(2, copies);