Home
last modified time | relevance | path

Searched refs:myInt (Results 1 – 2 of 2) sorted by relevance

/system/chre/util/tests/
Dunique_ptr_test.cc32 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()
[all …]
Doptional_test.cc51 Optional<int> myInt; in TEST() local
52 EXPECT_FALSE(myInt.has_value()); in TEST()
56 Optional<int> myInt(0x1337); in TEST() local
57 EXPECT_TRUE(myInt.has_value()); in TEST()
58 EXPECT_EQ(*myInt, 0x1337); in TEST()
62 Optional<int> myInt(std::move(0x1337)); in TEST() local
63 EXPECT_TRUE(myInt.has_value()); in TEST()
64 EXPECT_EQ(*myInt, 0x1337); in TEST()
68 Optional<int> myInt(0x1337); in TEST() local
69 Optional<int> myNewInt(myInt); in TEST()
[all …]