Lines Matching defs:cookie

102   ApkAssetsCookie cookie =
105 ASSERT_NE(kInvalidCookie, cookie);
108 EXPECT_EQ(0, cookie);
132 ApkAssetsCookie cookie =
135 ASSERT_NE(kInvalidCookie, cookie);
138 EXPECT_EQ(1, cookie);
160 ApkAssetsCookie cookie =
163 ASSERT_NE(kInvalidCookie, cookie);
166 EXPECT_EQ(2, cookie);
170 cookie = assetmanager.GetResource(value.data, false /* may_be_bag */, 0 /* density_override*/,
172 ASSERT_NE(kInvalidCookie, cookie);
173 EXPECT_EQ(1, cookie);
176 GetStringFromPool(assetmanager.GetStringPoolForCookie(cookie), value.data));
178 cookie = assetmanager.GetResource(libclient::R::string::foo_two, false /*may_be_bag*/,
180 ASSERT_NE(kInvalidCookie, cookie);
183 EXPECT_EQ(2, cookie);
187 cookie = assetmanager.GetResource(value.data, false /* may_be_bag */, 0 /* density_override*/,
189 ASSERT_NE(kInvalidCookie, cookie);
190 EXPECT_EQ(0, cookie);
193 GetStringFromPool(assetmanager.GetStringPoolForCookie(cookie), value.data));
205 ApkAssetsCookie cookie = assetmanager.GetResource(
208 ASSERT_NE(kInvalidCookie, cookie);
223 EXPECT_EQ(0, bag->entries[0].cookie);
227 EXPECT_EQ(0, bag->entries[1].cookie);
231 EXPECT_EQ(0, bag->entries[2].cookie);
249 EXPECT_EQ(1, bag->entries[0].cookie);
251 EXPECT_EQ(1, bag->entries[1].cookie);
268 EXPECT_EQ(1, bag->entries[0].cookie);
270 EXPECT_EQ(1, bag->entries[1].cookie);
285 EXPECT_EQ(0, bag_one->entries[0].cookie);
290 EXPECT_EQ(0, bag_one->entries[1].cookie);
300 EXPECT_EQ(0, bag_two->entries[0].cookie);
305 EXPECT_EQ(0, bag_two->entries[1].cookie);
314 EXPECT_EQ(0, bag_two->entries[2].cookie);
319 EXPECT_EQ(0, bag_two->entries[3].cookie);
324 EXPECT_EQ(0, bag_two->entries[4].cookie);
329 EXPECT_EQ(0, bag_two->entries[5].cookie);
350 ApkAssetsCookie cookie =
353 ASSERT_NE(kInvalidCookie, cookie);
359 cookie = assetmanager.ResolveReference(cookie, &value, &selected_config, &flags, &last_ref);
360 ASSERT_NE(kInvalidCookie, cookie);
373 ApkAssetsCookie cookie =
376 ASSERT_NE(kInvalidCookie, cookie);
382 cookie = assetmanager.ResolveReference(cookie, &value, &selected_config, &flags, &last_ref);
383 ASSERT_NE(kInvalidCookie, cookie);
408 ApkAssetsCookie cookie = assetmanager.GetResource(high_ref, false /*may_be_bag*/,
411 ASSERT_NE(kInvalidCookie, cookie);
417 assetmanager.ResolveReference(cookie, &value, &config, &flags, &last_ref);