• Home
  • Raw
  • Download

Lines Matching refs:entry2

67   disk_cache::Entry *entry1 = NULL, *entry2 = NULL;  in BackendBasics()  local
81 EXPECT_NE(net::OK, OpenEntry("some other key", &entry2)); in BackendBasics()
82 ASSERT_EQ(net::OK, CreateEntry("some other key", &entry2)); in BackendBasics()
84 ASSERT_TRUE(NULL != entry2); in BackendBasics()
90 EXPECT_TRUE(entry2 == entry3); in BackendBasics()
96 entry2->Close(); in BackendBasics()
103 ASSERT_EQ(net::OK, CreateEntry("some other key", &entry2)); in BackendBasics()
108 entry2->Close(); in BackendBasics()
134 disk_cache::Entry *entry1, *entry2; in BackendKeying() local
137 ASSERT_EQ(net::OK, CreateEntry(kName2, &entry2)); in BackendKeying()
138 EXPECT_TRUE(entry1 != entry2) << "Case sensitive"; in BackendKeying()
139 entry2->Close(); in BackendKeying()
143 ASSERT_EQ(net::OK, OpenEntry(buffer, &entry2)); in BackendKeying()
144 EXPECT_TRUE(entry1 == entry2); in BackendKeying()
145 entry2->Close(); in BackendKeying()
148 ASSERT_EQ(net::OK, OpenEntry(buffer + 1, &entry2)); in BackendKeying()
149 EXPECT_TRUE(entry1 == entry2); in BackendKeying()
150 entry2->Close(); in BackendKeying()
153 ASSERT_EQ(net::OK, OpenEntry(buffer + 3, &entry2)); in BackendKeying()
154 EXPECT_TRUE(entry1 == entry2); in BackendKeying()
155 entry2->Close(); in BackendKeying()
161 ASSERT_EQ(net::OK, CreateEntry(buffer2, &entry2)) << "key on block file"; in BackendKeying()
162 entry2->Close(); in BackendKeying()
166 ASSERT_EQ(net::OK, CreateEntry(buffer2, &entry2)) << "key on external file"; in BackendKeying()
167 entry2->Close(); in BackendKeying()
404 disk_cache::Entry* entry2; in BackendSetSize() local
405 ASSERT_EQ(net::OK, CreateEntry("an extra key", &entry2)); in BackendSetSize()
406 EXPECT_EQ(cache_size / 10, WriteData(entry2, 0, 0, buffer, cache_size / 10, in BackendSetSize()
408 entry2->Close(); // This will trigger the cache trim. in BackendSetSize()
410 EXPECT_NE(net::OK, OpenEntry(first, &entry2)); in BackendSetSize()
881 disk_cache::Entry *entry1, *entry2; in BackendEnumerations2() local
884 ASSERT_EQ(net::OK, CreateEntry(second, &entry2)); in BackendEnumerations2()
885 entry2->Close(); in BackendEnumerations2()
891 ASSERT_EQ(net::OK, OpenNextEntry(&iter, &entry2)); in BackendEnumerations2()
892 EXPECT_EQ(entry2->GetKey(), second); in BackendEnumerations2()
896 entry2->Close(); in BackendEnumerations2()
899 ASSERT_EQ(net::OK, OpenNextEntry(&iter, &entry2)); in BackendEnumerations2()
900 EXPECT_EQ(entry2->GetKey(), first); in BackendEnumerations2()
901 entry2->Close(); in BackendEnumerations2()
907 ASSERT_EQ(net::OK, OpenNextEntry(&iter, &entry2)); in BackendEnumerations2()
910 EXPECT_EQ(entry2->GetKey(), second); in BackendEnumerations2()
912 EXPECT_EQ(entry2->GetKey(), first); in BackendEnumerations2()
916 entry2->Close(); in BackendEnumerations2()
947 disk_cache::Entry *entry, *entry1, *entry2; in BackendInvalidEntryEnumeration() local
960 ASSERT_EQ(net::OK, CreateEntry(key2, &entry2)); in BackendInvalidEntryEnumeration()
961 entry2->Close(); in BackendInvalidEntryEnumeration()
1006 disk_cache::Entry *entry1, *entry2; in BackendFixEnumerators() local
1021 ASSERT_EQ(net::OK, OpenNextEntry(&iter2, &entry2)); in BackendFixEnumerators()
1022 ASSERT_TRUE(NULL != entry2); in BackendFixEnumerators()
1023 entry2->Close(); in BackendFixEnumerators()
1028 ASSERT_EQ(net::OK, OpenNextEntry(&iter2, &entry2)); in BackendFixEnumerators()
1029 ASSERT_TRUE(NULL != entry2); in BackendFixEnumerators()
1032 EXPECT_NE(entry2->GetKey(), entry1->GetKey()); in BackendFixEnumerators()
1034 entry2->Close(); in BackendFixEnumerators()
1037 ASSERT_EQ(net::OK, OpenNextEntry(&iter2, &entry2)); in BackendFixEnumerators()
1038 ASSERT_TRUE(NULL != entry2); in BackendFixEnumerators()
1039 entry2->Close(); in BackendFixEnumerators()
1326 disk_cache::Entry *entry1, *entry2; in BackendInvalidEntry2() local
1328 EXPECT_NE(net::OK, OpenEntry("some other key", &entry2)); in BackendInvalidEntry2()
1474 disk_cache::Entry *entry1, *entry2; in BackendNotMarkedButDirty() local
1476 EXPECT_NE(net::OK, OpenEntry("some other key", &entry2)); in BackendNotMarkedButDirty()
1505 disk_cache::Entry *entry1, *entry2; in BackendInvalidRankings2() local
1507 ASSERT_EQ(net::OK, OpenEntry("some other key", &entry2)); in BackendInvalidRankings2()
1508 entry2->Close(); in BackendInvalidRankings2()
1574 disk_cache::Entry *entry1, *entry2; in BackendDisable() local
1578 EXPECT_NE(net::OK, OpenNextEntry(&iter, &entry2)); in BackendDisable()
1580 EXPECT_NE(net::OK, CreateEntry("Something new", &entry2)); in BackendDisable()
1681 disk_cache::Entry *entry1, *entry2; in BackendDisable3() local
1687 EXPECT_NE(net::OK, OpenNextEntry(&iter, &entry2)); in BackendDisable3()
1690 ASSERT_EQ(net::OK, CreateEntry("Something new", &entry2)); in BackendDisable3()
1691 entry2->Close(); in BackendDisable3()
1715 disk_cache::Entry *entry1, *entry2, *entry3, *entry4; in BackendDisable4() local
1725 ASSERT_EQ(net::OK, CreateEntry(key2, &entry2)); in BackendDisable4()
1731 EXPECT_EQ(100, WriteData(entry2, 0, 0, buf, 100, false)); in BackendDisable4()
1740 EXPECT_EQ(100, ReadData(entry2, 0, 0, buf, 100)); in BackendDisable4()
1741 EXPECT_EQ(100, WriteData(entry2, 0, 0, buf, 100, false)); in BackendDisable4()
1742 EXPECT_EQ(100, WriteData(entry2, 1, 0, buf, 100, false)); in BackendDisable4()
1748 std::string key = entry2->GetKey(); in BackendDisable4()
1754 entry2->Close(); in BackendDisable4()
1801 disk_cache::Entry *entry1, *entry2; in BackendDoomAll() local
1803 ASSERT_EQ(net::OK, CreateEntry("second", &entry2)); in BackendDoomAll()
1805 entry2->Close(); in BackendDoomAll()
1808 ASSERT_EQ(net::OK, CreateEntry("fourth", &entry2)); in BackendDoomAll()
1825 entry2->Close(); in BackendDoomAll()
1832 ASSERT_EQ(net::OK, CreateEntry("fourth", &entry2)); in BackendDoomAll()
1834 entry2->Close(); in BackendDoomAll()