Lines Matching refs:table
84 ClassTable table; in TEST_F() local
85 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 0u); in TEST_F()
86 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 0u); in TEST_F()
89 table.Insert(h_X.Get()); in TEST_F()
90 EXPECT_EQ(table.LookupByDescriptor(h_X.Get()), h_X.Get()); in TEST_F()
91 EXPECT_EQ(table.Lookup(descriptor_x, ComputeModifiedUtf8Hash(descriptor_x)), h_X.Get()); in TEST_F()
92 EXPECT_EQ(table.Lookup("NOT_THERE", ComputeModifiedUtf8Hash("NOT_THERE")), nullptr); in TEST_F()
93 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 0u); in TEST_F()
94 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 1u); in TEST_F()
97 table.FreezeSnapshot(); in TEST_F()
98 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 1u); in TEST_F()
99 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 0u); in TEST_F()
102 EXPECT_EQ(table.LookupByDescriptor(h_Y.Get()), nullptr); in TEST_F()
103 EXPECT_FALSE(table.Contains(h_Y.Get())); in TEST_F()
104 table.Insert(h_Y.Get()); in TEST_F()
105 EXPECT_EQ(table.LookupByDescriptor(h_X.Get()), h_X.Get()); in TEST_F()
106 EXPECT_EQ(table.LookupByDescriptor(h_Y.Get()), h_Y.Get()); in TEST_F()
107 EXPECT_TRUE(table.Contains(h_X.Get())); in TEST_F()
108 EXPECT_TRUE(table.Contains(h_Y.Get())); in TEST_F()
110 EXPECT_EQ(table.NumZygoteClasses(class_loader.Get()), 1u); in TEST_F()
111 EXPECT_EQ(table.NumNonZygoteClasses(class_loader.Get()), 1u); in TEST_F()
114 EXPECT_TRUE(table.InsertStrongRoot(obj_X.Get())); in TEST_F()
115 EXPECT_FALSE(table.InsertStrongRoot(obj_X.Get())); in TEST_F()
116 table.ClearStrongRoots(); in TEST_F()
117 EXPECT_TRUE(table.InsertStrongRoot(obj_X.Get())); in TEST_F()
121 table.VisitRoots(roots); in TEST_F()
128 table.Visit([&classes](ObjPtr<mirror::Class> klass) REQUIRES_SHARED(Locks::mutator_lock_) { in TEST_F()
136 table.Visit([&classes](ObjPtr<mirror::Class> klass) REQUIRES_SHARED(Locks::mutator_lock_) { in TEST_F()
144 table.Remove(descriptor_x); in TEST_F()
145 EXPECT_FALSE(table.Contains(h_X.Get())); in TEST_F()
148 table.Insert(h_X.Get()); in TEST_F()
149 const size_t count = table.WriteToMemory(nullptr); in TEST_F()
151 ASSERT_EQ(table.WriteToMemory(&buffer[0]), count); in TEST_F()