Lines Matching refs:classifier
103 MockPhishingClassifier* classifier =
106 PhishingClassifierDelegate::Create(view(), classifier);
109 ASSERT_TRUE(classifier->is_ready());
112 EXPECT_CALL(*classifier, CancelPendingClassification()).Times(2);
116 Mock::VerifyAndClearExpectations(classifier);
121 EXPECT_CALL(*classifier, CancelPendingClassification());
122 EXPECT_CALL(*classifier, BeginClassification(Pointee(page_text), _));
124 Mock::VerifyAndClearExpectations(classifier);
130 EXPECT_CALL(*classifier, CancelPendingClassification()).Times(2);
133 Mock::VerifyAndClearExpectations(classifier);
136 EXPECT_CALL(*classifier, CancelPendingClassification());
138 Mock::VerifyAndClearExpectations(classifier);
143 EXPECT_CALL(*classifier, CancelPendingClassification());
147 Mock::VerifyAndClearExpectations(classifier);
150 EXPECT_CALL(*classifier, CancelPendingClassification());
152 Mock::VerifyAndClearExpectations(classifier);
156 EXPECT_CALL(*classifier, CancelPendingClassification());
158 Mock::VerifyAndClearExpectations(classifier);
161 EXPECT_CALL(*classifier, CancelPendingClassification());
163 Mock::VerifyAndClearExpectations(classifier);
166 EXPECT_CALL(*classifier, CancelPendingClassification());
168 Mock::VerifyAndClearExpectations(classifier);
173 EXPECT_CALL(*classifier, CancelPendingClassification());
174 EXPECT_CALL(*classifier, BeginClassification(Pointee(page_text), _));
176 Mock::VerifyAndClearExpectations(classifier);
184 EXPECT_CALL(*classifier, CancelPendingClassification());
186 Mock::VerifyAndClearExpectations(classifier);
189 EXPECT_CALL(*classifier, CancelPendingClassification());
191 Mock::VerifyAndClearExpectations(classifier);
193 EXPECT_CALL(*classifier, CancelPendingClassification());
195 Mock::VerifyAndClearExpectations(classifier);
198 EXPECT_CALL(*classifier, CancelPendingClassification());
200 Mock::VerifyAndClearExpectations(classifier);
204 EXPECT_CALL(*classifier, CancelPendingClassification());
206 Mock::VerifyAndClearExpectations(classifier);
209 EXPECT_CALL(*classifier, CancelPendingClassification());
211 Mock::VerifyAndClearExpectations(classifier);
213 EXPECT_CALL(*classifier, CancelPendingClassification());
215 Mock::VerifyAndClearExpectations(classifier);
218 EXPECT_CALL(*classifier, CancelPendingClassification());
220 Mock::VerifyAndClearExpectations(classifier);
223 EXPECT_CALL(*classifier, CancelPendingClassification());
228 MockPhishingClassifier* classifier =
231 PhishingClassifierDelegate::Create(view(), classifier);
232 ASSERT_FALSE(classifier->is_ready());
245 // Now set a scorer, which should cause a classifier to be created and
248 EXPECT_CALL(*classifier, BeginClassification(Pointee(page_text), _));
251 Mock::VerifyAndClearExpectations(classifier);
255 EXPECT_CALL(*classifier, CancelPendingClassification());
257 Mock::VerifyAndClearExpectations(classifier);
260 EXPECT_CALL(*classifier, CancelPendingClassification());
266 MockPhishingClassifier* classifier =
269 PhishingClassifierDelegate::Create(view(), classifier);
270 ASSERT_FALSE(classifier->is_ready());
283 // Now set a scorer, which should cause a classifier to be created and
286 EXPECT_CALL(*classifier, BeginClassification(Pointee(page_text), _));
289 Mock::VerifyAndClearExpectations(classifier);
292 EXPECT_CALL(*classifier, CancelPendingClassification());
298 MockPhishingClassifier* classifier =
301 PhishingClassifierDelegate::Create(view(), classifier);
304 ASSERT_TRUE(classifier->is_ready());
306 EXPECT_CALL(*classifier, CancelPendingClassification());
309 Mock::VerifyAndClearExpectations(classifier);
311 EXPECT_CALL(*classifier, CancelPendingClassification());
313 Mock::VerifyAndClearExpectations(classifier);
317 EXPECT_CALL(*classifier, BeginClassification(Pointee(page_text), _));
319 Mock::VerifyAndClearExpectations(classifier);
323 EXPECT_CALL(*classifier, CancelPendingClassification());
326 Mock::VerifyAndClearExpectations(classifier);
328 EXPECT_CALL(*classifier, CancelPendingClassification());
330 Mock::VerifyAndClearExpectations(classifier);
332 EXPECT_CALL(*classifier, CancelPendingClassification());
335 Mock::VerifyAndClearExpectations(classifier);
342 EXPECT_CALL(*classifier, CancelPendingClassification());
345 Mock::VerifyAndClearExpectations(classifier);
347 EXPECT_CALL(*classifier, CancelPendingClassification());
349 Mock::VerifyAndClearExpectations(classifier);
351 EXPECT_CALL(*classifier, CancelPendingClassification());
353 Mock::VerifyAndClearExpectations(classifier);
358 EXPECT_CALL(*classifier, CancelPendingClassification());
359 EXPECT_CALL(*classifier, BeginClassification(Pointee(page_text), _));
361 Mock::VerifyAndClearExpectations(classifier);
365 EXPECT_CALL(*classifier, CancelPendingClassification());
370 MockPhishingClassifier* classifier =
373 PhishingClassifierDelegate::Create(view(), classifier);
376 ASSERT_TRUE(classifier->is_ready());
378 EXPECT_CALL(*classifier, CancelPendingClassification());
381 Mock::VerifyAndClearExpectations(classifier);
390 EXPECT_CALL(*classifier, CancelPendingClassification());
391 EXPECT_CALL(*classifier, BeginClassification(Pointee(page_text), _));
393 Mock::VerifyAndClearExpectations(classifier);
397 EXPECT_CALL(*classifier, CancelPendingClassification());
403 MockPhishingClassifier* classifier =
406 PhishingClassifierDelegate::Create(view(), classifier);
409 ASSERT_TRUE(classifier->is_ready());
411 EXPECT_CALL(*classifier, CancelPendingClassification());
414 Mock::VerifyAndClearExpectations(classifier);
419 EXPECT_CALL(*classifier, CancelPendingClassification());
420 EXPECT_CALL(*classifier, BeginClassification(Pointee(page_text), _));
422 Mock::VerifyAndClearExpectations(classifier);
426 EXPECT_CALL(*classifier, CancelPendingClassification());
428 Mock::VerifyAndClearExpectations(classifier);
431 EXPECT_CALL(*classifier, CancelPendingClassification());
437 MockPhishingClassifier* classifier =
440 PhishingClassifierDelegate::Create(view(), classifier);
443 ASSERT_TRUE(classifier->is_ready());
447 EXPECT_CALL(*classifier, CancelPendingClassification());
449 Mock::VerifyAndClearExpectations(classifier);
454 EXPECT_CALL(*classifier, CancelPendingClassification());
455 EXPECT_CALL(*classifier, BeginClassification(Pointee(page_text), _));
457 Mock::VerifyAndClearExpectations(classifier);
460 // Now run the callback to simulate the classifier finishing.
470 EXPECT_CALL(*classifier, CancelPendingClassification());