Lines Matching refs:entry1
67 disk_cache::Entry *entry1 = NULL, *entry2 = NULL; in BackendBasics() local
68 EXPECT_NE(net::OK, OpenEntry("the first key", &entry1)); in BackendBasics()
69 ASSERT_EQ(net::OK, CreateEntry("the first key", &entry1)); in BackendBasics()
70 ASSERT_TRUE(NULL != entry1); in BackendBasics()
71 entry1->Close(); in BackendBasics()
72 entry1 = NULL; in BackendBasics()
74 ASSERT_EQ(net::OK, OpenEntry("the first key", &entry1)); in BackendBasics()
75 ASSERT_TRUE(NULL != entry1); in BackendBasics()
76 entry1->Close(); in BackendBasics()
77 entry1 = NULL; in BackendBasics()
79 EXPECT_NE(net::OK, CreateEntry("the first key", &entry1)); in BackendBasics()
80 ASSERT_EQ(net::OK, OpenEntry("the first key", &entry1)); in BackendBasics()
83 ASSERT_TRUE(NULL != entry1); in BackendBasics()
95 entry1->Close(); in BackendBasics()
102 ASSERT_EQ(net::OK, CreateEntry("the first key", &entry1)); in BackendBasics()
104 entry1->Doom(); in BackendBasics()
105 entry1->Close(); in BackendBasics()
134 disk_cache::Entry *entry1, *entry2; in BackendKeying() local
135 ASSERT_EQ(net::OK, CreateEntry(kName1, &entry1)); in BackendKeying()
138 EXPECT_TRUE(entry1 != entry2) << "Case sensitive"; in BackendKeying()
144 EXPECT_TRUE(entry1 == entry2); in BackendKeying()
149 EXPECT_TRUE(entry1 == entry2); in BackendKeying()
154 EXPECT_TRUE(entry1 == entry2); in BackendKeying()
168 entry1->Close(); in BackendKeying()
912 disk_cache::Entry *entry1, *entry2; in BackendEnumerations2() local
913 ASSERT_EQ(net::OK, CreateEntry(first, &entry1)); in BackendEnumerations2()
914 entry1->Close(); in BackendEnumerations2()
920 ASSERT_EQ(net::OK, OpenEntry(second, &entry1)); in BackendEnumerations2()
926 entry1->Close(); in BackendEnumerations2()
936 ASSERT_EQ(net::OK, OpenEntry(first, &entry1)); in BackendEnumerations2()
937 EXPECT_EQ(0, WriteData(entry1, 0, 200, NULL, 0, false)); in BackendEnumerations2()
946 entry1->Close(); in BackendEnumerations2()
978 disk_cache::Entry *entry, *entry1, *entry2; in BackendInvalidEntryEnumeration() local
979 ASSERT_EQ(net::OK, CreateEntry(key, &entry1)); in BackendInvalidEntryEnumeration()
985 EXPECT_EQ(kSize, WriteData(entry1, 0, 0, buffer1, kSize, false)); in BackendInvalidEntryEnumeration()
986 entry1->Close(); in BackendInvalidEntryEnumeration()
987 ASSERT_EQ(net::OK, OpenEntry(key, &entry1)); in BackendInvalidEntryEnumeration()
988 EXPECT_EQ(kSize, ReadData(entry1, 0, 0, buffer1, kSize)); in BackendInvalidEntryEnumeration()
1037 disk_cache::Entry *entry1, *entry2; in BackendFixEnumerators() local
1040 ASSERT_EQ(net::OK, OpenNextEntry(&iter1, &entry1)); in BackendFixEnumerators()
1041 ASSERT_TRUE(NULL != entry1); in BackendFixEnumerators()
1042 entry1->Close(); in BackendFixEnumerators()
1043 entry1 = NULL; in BackendFixEnumerators()
1047 if (entry1) in BackendFixEnumerators()
1048 entry1->Close(); in BackendFixEnumerators()
1049 ASSERT_EQ(net::OK, OpenNextEntry(&iter1, &entry1)); in BackendFixEnumerators()
1050 ASSERT_TRUE(NULL != entry1); in BackendFixEnumerators()
1058 entry1->Doom(); in BackendFixEnumerators()
1063 EXPECT_NE(entry2->GetKey(), entry1->GetKey()); in BackendFixEnumerators()
1064 entry1->Close(); in BackendFixEnumerators()
1205 disk_cache::Entry* entry1; in BackendTransaction() local
1206 ASSERT_NE(net::OK, OpenEntry(key, &entry1)); in BackendTransaction()
1357 disk_cache::Entry *entry1, *entry2; in BackendInvalidEntry2() local
1358 ASSERT_EQ(net::OK, OpenEntry("the first key", &entry1)); in BackendInvalidEntry2()
1360 entry1->Close(); in BackendInvalidEntry2()
1505 disk_cache::Entry *entry1, *entry2; in BackendNotMarkedButDirty() local
1506 ASSERT_EQ(net::OK, OpenEntry("the first key", &entry1)); in BackendNotMarkedButDirty()
1508 entry1->Close(); in BackendNotMarkedButDirty()
1536 disk_cache::Entry *entry1, *entry2; in BackendInvalidRankings2() local
1537 EXPECT_NE(net::OK, OpenEntry("the first key", &entry1)); in BackendInvalidRankings2()
1605 disk_cache::Entry *entry1, *entry2; in BackendDisable() local
1607 ASSERT_EQ(net::OK, OpenNextEntry(&iter, &entry1)); in BackendDisable()
1613 entry1->Close(); in BackendDisable()
1712 disk_cache::Entry *entry1, *entry2; in BackendDisable3() local
1715 ASSERT_EQ(net::OK, OpenNextEntry(&iter, &entry1)); in BackendDisable3()
1716 entry1->Close(); in BackendDisable3()
1746 disk_cache::Entry *entry1, *entry2, *entry3, *entry4; in BackendDisable4() local
1748 ASSERT_EQ(net::OK, OpenNextEntry(&iter, &entry1)); in BackendDisable4()
1784 entry1->Close(); in BackendDisable4()
1832 disk_cache::Entry *entry1, *entry2; in BackendDoomAll() local
1833 ASSERT_EQ(net::OK, CreateEntry("first", &entry1)); in BackendDoomAll()
1835 entry1->Close(); in BackendDoomAll()
1838 ASSERT_EQ(net::OK, CreateEntry("third", &entry1)); in BackendDoomAll()
1855 entry1->Close(); in BackendDoomAll()
1862 ASSERT_EQ(net::OK, CreateEntry("third", &entry1)); in BackendDoomAll()
1864 entry1->Close(); in BackendDoomAll()