Home
last modified time | relevance | path

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

/frameworks/native/libs/ftl/
Dnon_null_test.cpp110 std::vector<ftl::NonNull<int*>> vpi; in TEST() local
111 vpi.push_back(ftl::as_non_null(&i)); in TEST()
112 EXPECT_FALSE(ftl::contains(vpi, nullptr)); in TEST()
113 EXPECT_TRUE(ftl::contains(vpi, &i)); in TEST()
114 EXPECT_TRUE(ftl::contains(vpi, vpi.front())); in TEST()
118 std::vector<ftl::NonNull<std::shared_ptr<int>>> vpi; in TEST() local
119 vpi.push_back(ftl::as_non_null(std::make_shared<int>(2))); in TEST()
120 EXPECT_FALSE(ftl::contains(vpi, nullptr)); in TEST()
121 EXPECT_TRUE(ftl::contains(vpi, vpi.front().get())); in TEST()
122 EXPECT_TRUE(ftl::contains(vpi, vpi.front())); in TEST()