Home | History | Annotate | Download | only in base

Lines Matching defs:Apple

39   static const Key<int> Apple;
44 const FruitMap::Key<int> FruitMap::Apple;
52 EXPECT_NULL(fm.Get(FruitMap::Apple));
53 EXPECT_FALSE(fm.Exists(FruitMap::Apple));
57 fm.Set(FruitMap::Apple, 1);
59 EXPECT_EQ(1, *fm.Get(FruitMap::Apple));
60 EXPECT_TRUE(fm.Exists(FruitMap::Apple));
62 fm.Set(FruitMap::Apple, 5);
64 EXPECT_EQ(5, *fm.Get(FruitMap::Apple));
65 EXPECT_TRUE(fm.Exists(FruitMap::Apple));
68 EXPECT_EQ(5, *fm.Get(FruitMap::Apple));
73 fm.Remove(FruitMap::Apple);
74 EXPECT_FALSE(fm.Exists(FruitMap::Apple));
106 fmFilled.Set(FruitMap::Apple, 1);
117 EXPECT_EQ(*fmFilled.Get(FruitMap::Apple), *fmFilledCopy.Get(FruitMap::Apple));
124 EXPECT_EQ(*fmFilled.Get(FruitMap::Apple), *fmFilledCopy2.Get(FruitMap::Apple));
131 EXPECT_EQ(*fmFilled.Get(FruitMap::Apple), *fmMoved.Get(FruitMap::Apple));
136 fmMoved2.Set(FruitMap::Apple, 12345); // This value will be clobbered after the move
141 EXPECT_EQ(*fmFilled.Get(FruitMap::Apple), *fmMoved2.Get(FruitMap::Apple));
147 FruitMap fmApple(FruitMap::Apple, 12345);
149 EXPECT_EQ(12345, *fmApple.Get(FruitMap::Apple));
152 FruitMap fmAppleAndOrange(FruitMap::Apple, 12345,
155 EXPECT_EQ(12345, *fmAppleAndOrange.Get(FruitMap::Apple));
160 FruitMap fmAppleAndOrange(FruitMap::Apple, 12345,
163 int apple = fmAppleAndOrange.ReleaseOrDefault(FruitMap::Apple);
164 EXPECT_EQ(12345, apple);
166 // Releasing will also remove the Apple key.
170 int apple2 = fmAppleAndOrange.ReleaseOrDefault(FruitMap::Apple);
175 FruitMap fm(FruitMap::Apple, 12345);
177 // Apple gives the expected value we set.
178 int apple = fm.GetOrDefault(FruitMap::Apple);
179 EXPECT_EQ(12345, apple);