Lines Matching refs:kOrigin
243 const GURL kOrigin(kManifestUrl.GetOrigin());
256 EXPECT_TRUE(db.FindGroupsForOrigin(kOrigin, &records));
262 record.origin = kOrigin;
275 EXPECT_EQ(kOrigin, record.origin);
285 EXPECT_EQ(kOrigin, record.origin);
292 record.manifest_url = kOrigin;
293 record.origin = kOrigin;
299 EXPECT_TRUE(db.FindGroupForManifestUrl(kOrigin, &record));
301 EXPECT_EQ(kOrigin, record.manifest_url);
302 EXPECT_EQ(kOrigin, record.origin);
308 EXPECT_TRUE(db.FindGroupsForOrigin(kOrigin, &records));
312 EXPECT_EQ(kOrigin, records[0].origin);
314 EXPECT_EQ(kOrigin, records[1].manifest_url);
315 EXPECT_EQ(kOrigin, records[1].origin);
320 EXPECT_TRUE(db.FindGroupsForOrigin(kOrigin, &records));
323 EXPECT_EQ(kOrigin, records[0].manifest_url);
324 EXPECT_EQ(kOrigin, records[0].origin);
333 EXPECT_EQ(kOrigin, *(origins.begin()));
345 EXPECT_TRUE(origins.end() != origins.find(kOrigin));
604 const GURL kOrigin(kManifestUrl.GetOrigin());
613 EXPECT_EQ(0, db.GetOriginUsage(kOrigin));
614 EXPECT_TRUE(db.FindCachesForOrigin(kOrigin, &cache_records));
620 group_record.origin = kOrigin;
630 EXPECT_EQ(100, db.GetOriginUsage(kOrigin));
634 group_record.origin = kOrigin;
643 EXPECT_EQ(1100, db.GetOriginUsage(kOrigin));
658 EXPECT_TRUE(db.FindCachesForOrigin(kOrigin, &cache_records));
667 EXPECT_EQ(1100, usage_map[kOrigin]);