mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
nearby: snapshot of cl/313536507
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: I8936b527079074d5c3af5531b9245063767cc4a7
This commit is contained in:
@@ -116,7 +116,8 @@ TEST(PtrTest, ScopedPtr_Release_RefCounted) {
|
||||
|
||||
Ptr<int> ref_counted_2 = scoped_ref_counted_1.release();
|
||||
|
||||
ASSERT_EQ(*scoped_ref_counted_1, *ref_counted_2);
|
||||
ASSERT_TRUE(scoped_ref_counted_1.isNull());
|
||||
ASSERT_EQ(1234, *ref_counted_1);
|
||||
ASSERT_EQ(1234, *ref_counted_2);
|
||||
}
|
||||
|
||||
@@ -127,7 +128,7 @@ TEST(PtrTest, ScopedPtr_Release_RefCounted_Stay_Valid) {
|
||||
|
||||
Ptr<int> ref_counted_3 = scoped_ref_counted_1.release();
|
||||
|
||||
ASSERT_EQ(*scoped_ref_counted_1, *ref_counted_3);
|
||||
ASSERT_TRUE(scoped_ref_counted_1.isNull());
|
||||
ASSERT_EQ(1234, *ref_counted_2);
|
||||
ASSERT_EQ(1234, *ref_counted_3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user