Lines Matching refs:myInt
32 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() local
33 ASSERT_FALSE(myInt.isNull()); in TEST()
34 EXPECT_EQ(myInt.get()->value, 0xcafe); in TEST()
35 EXPECT_EQ(myInt->value, 0xcafe); in TEST()
36 EXPECT_EQ((*myInt).value, 0xcafe); in TEST()
37 EXPECT_EQ(myInt[0].value, 0xcafe); in TEST()
56 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() local
57 ASSERT_FALSE(myInt.isNull()); in TEST()
58 Value *value = myInt.get(); in TEST()
60 UniquePtr<Value> moved(std::move(myInt)); in TEST()
62 EXPECT_EQ(myInt.get(), nullptr); in TEST()
69 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() local
70 ASSERT_FALSE(myInt.isNull()); in TEST()
76 myMovedInt = std::move(myInt); in TEST()
78 ASSERT_TRUE(myInt.isNull()); in TEST()
90 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() local
91 ASSERT_FALSE(myInt.isNull()); in TEST()
93 value1 = myInt.get(); in TEST()
95 value2 = myInt.release(); in TEST()
97 EXPECT_EQ(myInt.get(), nullptr); in TEST()
98 EXPECT_TRUE(myInt.isNull()); in TEST()
111 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() local
112 EXPECT_EQ(myInt.get()->value, 0xcafe); in TEST()
114 myInt.reset(nullptr); in TEST()
115 EXPECT_EQ(myInt.get(), nullptr); in TEST()
118 myInt = MakeUnique<Value>(0xcafe); in TEST()
121 myInt.reset(myInt2.release()); in TEST()
123 EXPECT_EQ(myInt.get()->value, 0xface); in TEST()
126 myInt.reset(); in TEST()
127 EXPECT_EQ(myInt.get(), nullptr); in TEST()
137 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() local
138 EXPECT_TRUE(myInt != nullptr); in TEST()
140 myInt.reset(); in TEST()
141 EXPECT_TRUE(myInt == nullptr); in TEST()