Home | History | Annotate | Download | only in base

Lines Matching defs:Adder

43 class Adder : public Foo {
45 explicit Adder(int scaler) : total(0), scaler_(scaler) {}
46 ~Adder() override = default;
241 Adder a(1), b(-1), c(1), d(-1), e(-1);
320 const Adder a(1);
321 const Adder b(2);
322 const Adder c(3);
388 Adder a(1), b(-1), c(1), d(-1);
412 Adder a(1), b(-1), c(1), d(-1);
437 Adder a(1);
438 Adder b(-1);
439 Adder c(1);
440 Adder d(-1);
466 Adder a(1), b(1);
497 Adder a(1), b(1), c(1);
573 Adder b(1);
596 Adder a(1);
597 Adder b(-1);
663 Adder a(1);
734 Adder observer_added_from_notification(1);
810 Adder a(1);
812 Adder c(1);
822 // B's adder should not have been notified because it was added during
826 // Notify again to make sure b's adder is notified.
837 Adder a(1);
839 Adder c(1);
849 // B's adder should not have been notified because it was added during
853 // Notify again to make sure b's adder is notified.
871 const Adder& adder() const { return adder_; }
877 Adder adder_;
889 EXPECT_EQ(1, a.adder().total)
890 << "Adder should observe once and have sum of 1.";
902 EXPECT_EQ(0, a.adder().total)
903 << "Adder should not observe, so sum should still be 0.";
944 Adder a(1), b(-1), c(1), d(-1);
973 Adder a(1), b(-1), c(1), d(-1);
996 Adder a(1), b(-1), c(1), d(-1);
1019 Adder a(1), b(-1), c(1), d(-1);
1042 Adder a(1), b(-1), c(1), d(-1);
1065 Adder a(1), b(-1), c(1), d(-1);
1089 Adder a(1), b(-1), c(1), d(-1);
1120 Adder a(1), b(-1), c(1), d(-1);
1143 Adder a(1), b(-1), c(1), d(-1);
1167 Adder a(1), b(-1);
1195 Adder a(1), b(-1);
1230 Adder b(-1);
1264 Adder a(1);
1281 Adder a(1);