Lines Matching defs:host_
27 : host_(NULL),
32 host_ = new PnaclHost();
34 host_->InitForTest(temp_dir_.path());
35 EXPECT_EQ(host_->cache_state_, PnaclHost::CacheReady);
38 EXPECT_EQ(0U, host_->pending_translations());
39 delete host_;
51 return host_->disk_cache_->Size();
90 PnaclHost* host_;
108 host_->GetNexeFd( \
123 EXPECT_EQ(1U, host_->pending_translations());
125 EXPECT_EQ(1U, host_->pending_translations());
127 host_->TranslationFinished(0, 0, true);
129 EXPECT_EQ(0U, host_->pending_translations());
135 EXPECT_EQ(1U, host_->pending_translations());
136 host_->RendererClosing(0);
142 EXPECT_EQ(1U, host_->pending_translations());
143 host_->TranslationFinished(0, 1, true); // nonexistent translation
144 EXPECT_EQ(1U, host_->pending_translations());
145 host_->RendererClosing(1); // nonexistent renderer
146 EXPECT_EQ(1U, host_->pending_translations());
149 host_->RendererClosing(0); // close without finishing
157 host_->TranslationFinished(0, 0, true);
162 EXPECT_EQ(0U, host_->pending_translations());
170 host_->TranslationFinished(0, 0, false);
172 EXPECT_EQ(0U, host_->pending_translations());
177 host_->TranslationFinished(0, 0, true);
180 EXPECT_EQ(0U, host_->pending_translations());
187 host_->TranslationFinished(0, 0, false);
189 EXPECT_EQ(0U, host_->pending_translations());
194 host_->TranslationFinished(0, 0, false);
195 EXPECT_EQ(0U, host_->pending_translations());
203 EXPECT_EQ(1U, host_->pending_translations());
208 EXPECT_EQ(2U, host_->pending_translations());
212 host_->TranslationFinished(0, 0, true);
215 EXPECT_EQ(0U, host_->pending_translations());
225 EXPECT_EQ(2U, host_->pending_translations());
227 EXPECT_EQ(2U, host_->pending_translations());
229 host_->TranslationFinished(0, 0, true);
232 EXPECT_EQ(0U, host_->pending_translations());
241 host_->TranslationFinished(0, 0, true);
243 EXPECT_EQ(0U, host_->pending_translations());
249 EXPECT_EQ(0U, host_->pending_translations());
258 host_->TranslationFinished(0, 0, true);
260 EXPECT_EQ(0U, host_->pending_translations());
266 EXPECT_EQ(0U, host_->pending_translations());
277 EXPECT_EQ(2U, host_->pending_translations());
279 EXPECT_EQ(2U, host_->pending_translations());
281 host_->RendererClosing(0);
284 EXPECT_EQ(1U, host_->pending_translations());
285 host_->RendererClosing(1);
293 host_->TranslationFinished(0, 0, true);
299 host_->TranslationFinished(0, 0, true);
315 host_->TranslationFinished(0, 0, true);
316 host_->TranslationFinished(0, 1, true);
318 EXPECT_EQ(0U, host_->pending_translations());
328 host_->RendererClosing(0);
340 EXPECT_EQ(2U, host_->pending_translations());
342 EXPECT_EQ(2U, host_->pending_translations());
344 host_->TranslationFinished(0, 0, true);
347 EXPECT_EQ(0U, host_->pending_translations());
358 host_->TranslationFinished(0, 0, true);
359 host_->TranslationFinished(0, 1, true);
361 EXPECT_EQ(0U, host_->pending_translations());
365 host_->ClearTranslationCacheEntriesBetween(base::Time(), base::Time(),
370 host_->RendererClosing(0);