Lines Matching refs:handle_
71 handle_ = nullptr; in SetUp()
82 if (handle_ != nullptr) { in TearDown()
83 ASSERT_DL_ZERO(dlclose(handle_)); in TearDown()
87 void* handle_; member in DlExtTest
91 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, nullptr); in TEST_F()
92 ASSERT_DL_NOTNULL(handle_); in TEST_F()
93 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
101 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
102 ASSERT_DL_NOTNULL(handle_); in TEST_F()
103 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
115 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
116 ASSERT_DL_NOTNULL(handle_); in TEST_F()
117 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
121 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle_, "dlopen_testlib_taxicab_numb… in TEST_F()
141 handle_ = android_dlopen_ext(lib_path.c_str(), RTLD_NOW, &extinfo); in TEST_F()
142 ASSERT_DL_NOTNULL(handle_); in TEST_F()
144 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle_, "dlopen_testlib_taxicab_numb… in TEST_F()
157 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
158 ASSERT_TRUE(handle_ == nullptr); in TEST_F()
163 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
164 ASSERT_TRUE(handle_ == nullptr); in TEST_F()
168 handle_ = android_dlopen_ext("libname_placeholder", RTLD_NOW, &extinfo); in TEST_F()
169 ASSERT_TRUE(handle_ == nullptr); in TEST_F()
173 handle_ = android_dlopen_ext("libname_ignored", RTLD_NOW, &extinfo); in TEST_F()
174 ASSERT_TRUE(handle_ == nullptr); in TEST_F()
191 handle_ = android_dlopen_ext("/some/lib/that/does_not_exist", RTLD_NOW, &extinfo); in TEST_F()
192 ASSERT_TRUE(handle_ == nullptr); in TEST_F()
330 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
331 ASSERT_DL_NOTNULL(handle_); in TEST_F()
332 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
340 dlclose(handle_); in TEST_F()
341 handle_ = nullptr; in TEST_F()
354 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
355 EXPECT_EQ(nullptr, handle_); in TEST_F()
365 handle_ = android_dlopen_ext(kLibNameRecursive, RTLD_NOW, &extinfo); in TEST_F()
366 ASSERT_DL_NOTNULL(handle_); in TEST_F()
368 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
375 f = reinterpret_cast<fn>(dlsym(handle_, "getBiggerRandomNumber")); in TEST_F()
382 …uint32_t* taxicab_number = reinterpret_cast<uint32_t*>(dlsym(handle_, "dlopen_testlib_taxicab_numb… in TEST_F()
398 handle_ = android_dlopen_ext(kLibNameRecursive, RTLD_NOW, &extinfo); in TEST_F()
399 EXPECT_EQ(nullptr, handle_); in TEST_F()
409 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
410 ASSERT_DL_NOTNULL(handle_); in TEST_F()
411 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
426 handle_ = android_dlopen_ext(kLibName, RTLD_NOW, &extinfo); in TEST_F()
427 ASSERT_DL_NOTNULL(handle_); in TEST_F()
428 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TEST_F()
500 handle_ = android_dlopen_ext(lib, RTLD_NOW, &extinfo_); in TryUsingRelro()
501 ASSERT_DL_NOTNULL(handle_); in TryUsingRelro()
502 fn f = reinterpret_cast<fn>(dlsym(handle_, "getRandomNumber")); in TryUsingRelro()
507 fn f = reinterpret_cast<fn>(dlsym(handle_, "getBiggerRandomNumber")); in TryUsingRelro()
513 reinterpret_cast<uint32_t*>(dlsym(handle_, "dlopen_testlib_taxicab_number")); in TryUsingRelro()
532 void* relro_data = dlsym(handle_, "lots_of_relro"); in TEST_F()
546 void* relro_data = dlsym(handle_, "lots_of_relro"); in TEST_F()
549 void* recursive_relro_data = dlsym(handle_, "lots_more_relro"); in TEST_F()