Lines Matching refs:Value
8 struct Value { struct
9 Value(int value) : value(value) { in Value() argument
13 ~Value() { in ~Value() argument
17 Value& operator=(Value&& other) { in operator =() argument
26 int Value::constructionCounter = 0; argument
29 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST()
38 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST()
40 Value *value = myInt.get(); in TEST()
42 UniquePtr<Value> moved(std::move(myInt)); in TEST()
48 Value::constructionCounter = 0; in TEST()
51 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST()
53 EXPECT_EQ(Value::constructionCounter, 1); in TEST()
55 UniquePtr<Value> myMovedInt = MakeUnique<Value>(0); in TEST()
57 EXPECT_EQ(Value::constructionCounter, 2); in TEST()
64 EXPECT_EQ(Value::constructionCounter, 0); in TEST()
68 Value::constructionCounter = 0; in TEST()
70 Value *value1, *value2; in TEST()
72 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST()
74 EXPECT_EQ(Value::constructionCounter, 1); in TEST()
83 EXPECT_EQ(Value::constructionCounter, 1); in TEST()
85 value2->~Value(); in TEST()