Lines Matching refs:handle_
72 handle_ = nullptr; in SetUp()
83 if (handle_ != nullptr) { in TearDown()
84 ASSERT_DL_ZERO(dlclose(handle_)); in TearDown()
88 void* handle_; member in DlExtTest
93 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, nullptr); in TEST_F()
94 ASSERT_DL_NOTNULL(handle_); in TEST_F()
95 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
103 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
104 ASSERT_DL_NOTNULL(handle_); in TEST_F()
105 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
117 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
118 ASSERT_DL_NOTNULL(handle_); in TEST_F()
119 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
123 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle_, "dlopen_testlib_taxicab_numb… in TEST_F()
143 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
144 ASSERT_DL_NOTNULL(handle_); in TEST_F()
146 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle_, "dlopen_testlib_taxicab_numb… in TEST_F()
159 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
160 ASSERT_TRUE(handle_ == nullptr); in TEST_F()
165 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
166 ASSERT_TRUE(handle_ == nullptr); in TEST_F()
170 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
171 ASSERT_TRUE(handle_ == nullptr); in TEST_F()
175 handle_ = android_dlopen_ext("libname_ignored", RTLD_NOW, &extinfo); in TEST_F()
176 ASSERT_TRUE(handle_ == nullptr); in TEST_F()
193 handle_ = android_dlopen_ext("/some/lib/that/does_not_exist", RTLD_NOW, &extinfo); in TEST_F()
194 ASSERT_TRUE(handle_ == nullptr); in TEST_F()
332 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
333 ASSERT_DL_NOTNULL(handle_); in TEST_F()
334 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
342 dlclose(handle_); in TEST_F()
343 handle_ = nullptr; in TEST_F()
356 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
357 EXPECT_EQ(nullptr, handle_); in TEST_F()
367 handle_ = android_dlopen_ext(kLibNameRecursive, RTLD_NOW, &extinfo); in TEST_F()
368 ASSERT_DL_NOTNULL(handle_); in TEST_F()
370 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
377 f = reinterpret_cast<fn>(dlsym(handle_, "getBiggerRandomNumber")); in TEST_F()
384 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle_, "dlopen_testlib_taxicab_numb… in TEST_F()
400 handle_ = android_dlopen_ext(kLibNameRecursive, RTLD_NOW, &extinfo); in TEST_F()
401 EXPECT_EQ(nullptr, handle_); in TEST_F()
411 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
412 ASSERT_DL_NOTNULL(handle_); in TEST_F()
413 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
428 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
429 ASSERT_DL_NOTNULL(handle_); in TEST_F()
430 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
501 handle_ = android_dlopen_ext(lib, RTLD_NOW, &extinfo_); in TryUsingRelro()
502 ASSERT_DL_NOTNULL(handle_); in TryUsingRelro()
503 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TryUsingRelro()
508 fn f = reinterpret_cast<fn>(dlsym(handle_, "getBiggerRandomNumber")); in TryUsingRelro()
514 reinterpret_cast<uint32_t*>(dlsym(handle_, "dlopen_testlib_taxicab_number")); in TryUsingRelro()
533 void* relro_data = dlsym(handle_, "lots_of_relro"); in TEST_F()
547 void* relro_data = dlsym(handle_, "lots_of_relro"); in TEST_F()
550 void* recursive_relro_data = dlsym(handle_, "lots_more_relro"); in TEST_F()