Lines Matching refs:test_obj
177 CefRefPtr<CefTranslatorTestRefPtrLibrary> test_obj = in TEST() local
179 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
180 int retval = obj->SetRefPtrLibrary(test_obj); in TEST()
182 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
194 EXPECT_TRUE(test_obj->HasOneRef()); in TEST()
204 CefRefPtr<CefTranslatorTestRefPtrLibraryChild> test_obj = in TEST() local
206 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
207 EXPECT_EQ(kTestVal2, test_obj->GetOtherValue()); in TEST()
208 int retval = obj->SetRefPtrLibrary(test_obj); in TEST()
210 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
211 EXPECT_EQ(kTestVal2, test_obj->GetOtherValue()); in TEST()
213 EXPECT_EQ(kTestVal, obj->SetChildRefPtrLibrary(test_obj)); in TEST()
215 obj->SetChildRefPtrLibraryAndReturnParent(test_obj)->GetValue()); in TEST()
236 EXPECT_TRUE(test_obj->HasOneRef()); in TEST()
312 CefRefPtr<TranslatorTestRefPtrClient> test_obj = in TEST() local
314 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
315 EXPECT_EQ(kTestVal, obj->SetRefPtrClient(test_obj.get())); in TEST()
317 obj->SetRefPtrClientAndReturn(test_obj.get()); in TEST()
318 EXPECT_EQ(test_obj.get(), handler.get()); in TEST()
324 EXPECT_TRUE(test_obj->HasOneRef()); in TEST()
334 CefRefPtr<TranslatorTestRefPtrClientChild> test_obj = in TEST() local
336 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
337 EXPECT_EQ(kTestVal2, test_obj->GetOtherValue()); in TEST()
338 int retval = obj->SetRefPtrClient(test_obj); in TEST()
340 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
341 EXPECT_EQ(kTestVal2, test_obj->GetOtherValue()); in TEST()
343 EXPECT_EQ(kTestVal, obj->SetChildRefPtrClient(test_obj)); in TEST()
345 obj->SetChildRefPtrClientAndReturnParent(test_obj); in TEST()
347 EXPECT_EQ(test_obj.get(), handler.get()); in TEST()
352 EXPECT_TRUE(test_obj->HasOneRef()); in TEST()
393 CefOwnPtr<CefTranslatorTestScopedLibrary> test_obj = in TEST() local
395 EXPECT_TRUE(test_obj.get()); in TEST()
396 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
397 int retval = obj->SetOwnPtrLibrary(std::move(test_obj)); in TEST()
399 EXPECT_FALSE(test_obj.get()); in TEST()
420 CefOwnPtr<CefTranslatorTestScopedLibraryChild> test_obj = in TEST() local
422 EXPECT_TRUE(test_obj.get()); in TEST()
423 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
424 EXPECT_EQ(kTestVal2, test_obj->GetOtherValue()); in TEST()
425 int retval = obj->SetOwnPtrLibrary(std::move(test_obj)); in TEST()
427 EXPECT_FALSE(test_obj.get()); in TEST()
429 test_obj = CefTranslatorTestScopedLibraryChild::Create(kTestVal, kTestVal2); in TEST()
430 EXPECT_TRUE(test_obj.get()); in TEST()
431 EXPECT_EQ(kTestVal, obj->SetChildOwnPtrLibrary(std::move(test_obj))); in TEST()
432 EXPECT_FALSE(test_obj.get()); in TEST()
434 test_obj = CefTranslatorTestScopedLibraryChild::Create(kTestVal, kTestVal2); in TEST()
435 EXPECT_TRUE(test_obj.get()); in TEST()
437 obj->SetChildOwnPtrLibraryAndReturnParent(std::move(test_obj)); in TEST()
438 EXPECT_FALSE(test_obj.get()); in TEST()
519 CefOwnPtr<CefTranslatorTestScopedClient> test_obj( in TEST() local
521 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
522 EXPECT_EQ(kTestVal, obj->SetOwnPtrClient(std::move(test_obj))); in TEST()
523 EXPECT_FALSE(test_obj.get()); in TEST()
527 test_obj.reset(new TranslatorTestScopedClient(kTestVal, &got_delete)); in TEST()
529 obj->SetOwnPtrClientAndReturn(std::move(test_obj)); in TEST()
530 EXPECT_FALSE(test_obj.get()); in TEST()
549 CefOwnPtr<CefTranslatorTestScopedClientChild> test_obj( in TEST() local
551 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
552 EXPECT_EQ(kTestVal2, test_obj->GetOtherValue()); in TEST()
553 EXPECT_EQ(kTestVal, obj->SetOwnPtrClient(std::move(test_obj))); in TEST()
554 EXPECT_FALSE(test_obj.get()); in TEST()
558 test_obj.reset( in TEST()
560 EXPECT_EQ(kTestVal, obj->SetChildOwnPtrClient(std::move(test_obj))); in TEST()
561 EXPECT_FALSE(test_obj.get()); in TEST()
565 test_obj.reset( in TEST()
568 obj->SetChildOwnPtrClientAndReturnParent(std::move(test_obj))); in TEST()
570 EXPECT_FALSE(test_obj.get()); in TEST()
584 CefOwnPtr<CefTranslatorTestScopedLibrary> test_obj( in TEST() local
586 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
587 int retval = obj->SetRawPtrLibrary(test_obj.get()); in TEST()
589 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
609 CefOwnPtr<CefTranslatorTestScopedLibraryChild> test_obj( in TEST() local
611 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
612 EXPECT_EQ(kTestVal2, test_obj->GetOtherValue()); in TEST()
613 int retval = obj->SetRawPtrLibrary(test_obj.get()); in TEST()
615 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
616 EXPECT_EQ(kTestVal2, test_obj->GetOtherValue()); in TEST()
618 EXPECT_EQ(kTestVal, obj->SetChildRawPtrLibrary(test_obj.get())); in TEST()
668 CefOwnPtr<TranslatorTestScopedClient> test_obj( in TEST() local
670 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
671 EXPECT_EQ(kTestVal, obj->SetRawPtrClient(test_obj.get())); in TEST()
673 test_obj.reset(nullptr); in TEST()
688 CefOwnPtr<TranslatorTestScopedClientChild> test_obj( in TEST() local
690 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
691 EXPECT_EQ(kTestVal2, test_obj->GetOtherValue()); in TEST()
692 int retval = obj->SetRawPtrClient(test_obj.get()); in TEST()
694 EXPECT_EQ(kTestVal, test_obj->GetValue()); in TEST()
695 EXPECT_EQ(kTestVal2, test_obj->GetOtherValue()); in TEST()
698 EXPECT_EQ(kTestVal, obj->SetChildRawPtrClient(test_obj.get())); in TEST()
700 test_obj.reset(nullptr); in TEST()