Home
last modified time | relevance | path

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

/system/chre/util/tests/
Doptional_test.cc24 Optional<int> myInt; in TEST() local
25 EXPECT_FALSE(myInt.has_value()); in TEST()
29 Optional<int> myInt(0x1337); in TEST() local
30 EXPECT_TRUE(myInt.has_value()); in TEST()
31 EXPECT_EQ(*myInt, 0x1337); in TEST()
35 Optional<int> myInt(std::move(0x1337)); in TEST() local
36 EXPECT_TRUE(myInt.has_value()); in TEST()
37 EXPECT_EQ(*myInt, 0x1337); in TEST()
41 Optional<int> myInt; in TEST() local
42 EXPECT_FALSE(myInt.has_value()); in TEST()
[all …]
Dunique_ptr_test.cc29 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() local
30 ASSERT_FALSE(myInt.isNull()); in TEST()
31 EXPECT_EQ(myInt.get()->value, 0xcafe); in TEST()
32 EXPECT_EQ(myInt->value, 0xcafe); in TEST()
33 EXPECT_EQ((*myInt).value, 0xcafe); in TEST()
34 EXPECT_EQ(myInt[0].value, 0xcafe); in TEST()
38 UniquePtr<Value> myInt = MakeUnique<Value>(0xcafe); in TEST() local
39 ASSERT_FALSE(myInt.isNull()); in TEST()
40 Value *value = myInt.get(); in TEST()
42 UniquePtr<Value> moved(std::move(myInt)); in TEST()
[all …]