Lines Matching refs:Optional
23 using chre::Optional;
41 TEST(Optional, ShouldDestructContainedObject) { in TEST() argument
44 Optional<DestructorTestingObject> object(DestructorTestingObject{}); in TEST()
50 TEST(Optional, NoValueByDefault) { in TEST() argument
51 Optional<int> myInt; in TEST()
55 TEST(Optional, NonDefaultValueByDefault) { in TEST() argument
56 Optional<int> myInt(0x1337); in TEST()
61 TEST(Optional, NonDefaultMovedValueByDefault) { in TEST() argument
62 Optional<int> myInt(std::move(0x1337)); in TEST()
67 TEST(Optional, CopyConstruct) { in TEST() argument
68 Optional<int> myInt(0x1337); in TEST()
69 Optional<int> myNewInt(myInt); in TEST()
74 TEST(Optional, CopyConstructConst) { in TEST() argument
75 const Optional<int> myInt(0x1337); in TEST()
76 Optional<int> myNewInt(myInt); in TEST()
81 TEST(Optional, CopyAssignAndRead) { in TEST() argument
82 Optional<int> myInt; in TEST()
91 TEST(Optional, MoveAssignAndRead) { in TEST() argument
92 Optional<int> myInt; in TEST()
99 TEST(Optional, OptionalMoveAssignAndRead) { in TEST() argument
100 Optional<int> myInt(0x1337); in TEST()
101 Optional<int> myMovedInt; in TEST()
109 TEST(Optional, OptionalCopyAssignAndRead) { in TEST() argument
110 Optional<int> myInt(0x1337); in TEST()
111 Optional<int> myCopiedInt; in TEST()
155 TEST(Optional, UninitializedAssignment) { in TEST() argument
161 Optional<MovableButNonCopyable> container; in TEST()