Lines Matching refs:store_

96     store_.reset(CreateStore<T>(tempDir_));
100 if (store_ && use_persistent_store())
101 store_->ClearAll();
105 void ResetStore() { store_.reset(CreateStore<T>(tempDir_)); }
110 scoped_ptr<ImageStore> store_;
125 this->store_->GetAllPageUrls(&all_urls);
130 this->store_->Insert(GURL("foo://bar"), GURL("a.jpg"), GenerateBlackImage());
133 this->store_->GetAllPageUrls(&all_urls);
136 EXPECT_TRUE(this->store_->HasKey(GURL("foo://bar")));
143 this->store_->Insert(url, image_url, src_image);
145 std::pair<gfx::Image, GURL> image_info = this->store_->Get(url);
146 gfx::Size size = this->store_->GetSize(url);
158 this->store_->Insert(url, image_url, src_image);
159 this->store_->Erase(url);
161 EXPECT_FALSE(this->store_->HasKey(url));
163 this->store_->GetAllPageUrls(&all_urls);
169 this->store_->Insert(url_foo, GURL("foo.jpg"), GenerateBlackImage());
171 this->store_->Insert(url_foo, GURL("bar.jpg"), GenerateWhiteImage());
173 this->store_->ClearAll();
175 EXPECT_FALSE(this->store_->HasKey(url_foo));
176 EXPECT_FALSE(this->store_->HasKey(url_bar));
178 this->store_->GetAllPageUrls(&all_urls);
187 this->store_->Insert(url, image_url1, src_image1);
190 this->store_->Insert(url, image_url2, src_image2);
192 std::pair<gfx::Image, GURL> image_info = this->store_->Get(url);
194 EXPECT_TRUE(this->store_->HasKey(url));
196 this->store_->GetAllPageUrls(&all_urls);
206 this->store_->Insert(url, image_url, src_image);
211 this->store_->GetAllPageUrls(&all_urls);
214 EXPECT_TRUE(this->store_->HasKey(GURL("foo://bar")));
215 std::pair<gfx::Image, GURL> image_info = this->store_->Get(url);
221 this->store_->GetAllPageUrls(&all_urls);
223 EXPECT_FALSE(this->store_->HasKey(GURL("foo://bar")));
236 EXPECT_EQ(this->store_->GetStoreSizeInBytes(), -1);
238 EXPECT_LE(this->store_->GetStoreSizeInBytes(), 1024);
241 this->store_->Insert(
243 EXPECT_GE(this->store_->GetStoreSizeInBytes(), size);
244 size = this->store_->GetStoreSizeInBytes();
248 EXPECT_GE(this->store_->GetStoreSizeInBytes(), 90 * 1024); // 90kb
249 EXPECT_LE(this->store_->GetStoreSizeInBytes(), 200 * 1024); // 200kb
251 EXPECT_GE(this->store_->GetStoreSizeInBytes(), 400 * 1024); // 400kb
252 EXPECT_LE(this->store_->GetStoreSizeInBytes(), 500 * 1024); // 500kb