• Home
  • Raw
  • Download

Lines Matching refs:Value

11 struct Value {  struct
12 Value(int value) : value(value) { in Value() argument
16 ~Value() { in ~Value() argument
20 Value &operator=(Value &&other) { in operator =() argument
29 int Value::constructionCounter = 0; argument
32 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST()
56 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST()
58 Value *value = myInt.get(); in TEST()
60 UniquePtr<Value> moved(std::move(myInt)); in TEST()
66 Value::constructionCounter = 0; in TEST()
69 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST()
71 EXPECT_EQ(Value::constructionCounter, 1); in TEST()
73 UniquePtr<Value> myMovedInt = MakeUnique<Value>(0); in TEST()
75 EXPECT_EQ(Value::constructionCounter, 2); in TEST()
82 EXPECT_EQ(Value::constructionCounter, 0); in TEST()
86 Value::constructionCounter = 0; in TEST()
88 Value *value1, *value2; in TEST()
90 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST()
92 EXPECT_EQ(Value::constructionCounter, 1); in TEST()
101 EXPECT_EQ(Value::constructionCounter, 1); in TEST()
103 value2->~Value(); in TEST()
108 Value::constructionCounter = 0; in TEST()
111 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST()
113 EXPECT_EQ(Value::constructionCounter, 1); in TEST()
116 EXPECT_EQ(Value::constructionCounter, 0); in TEST()
118 myInt = MakeUnique<Value>(0xcafe); in TEST()
119 UniquePtr<Value> myInt2 = MakeUnique<Value>(0xface); in TEST()
120 EXPECT_EQ(Value::constructionCounter, 2); in TEST()
122 EXPECT_EQ(Value::constructionCounter, 1); in TEST()
130 EXPECT_EQ(Value::constructionCounter, 0); in TEST()
134 Value::constructionCounter = 0; in TEST()
137 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST()
144 EXPECT_EQ(Value::constructionCounter, 0); in TEST()