| Index: chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc
|
| diff --git a/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc b/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc
|
| index 83085ff0c71de4ab2ba1208236eddcbcbe2df8ac..23fe58dd92337f5884d562e7b6be8d8e5c050bda 100644
|
| --- a/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc
|
| +++ b/chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc
|
| @@ -203,4 +203,26 @@ IN_PROC_BROWSER_TEST_F(DistillablePageUtilsBrowserTestAdaboost,
|
| }
|
| }
|
|
|
| +using DistillablePageUtilsBrowserTestAllArticles =
|
| + DistillablePageUtilsBrowserTestOption<kAllArticles>;
|
| +
|
| +IN_PROC_BROWSER_TEST_F(DistillablePageUtilsBrowserTestAllArticles,
|
| + TestDelegate) {
|
| + const char* paths[] = {kSimpleArticlePath, kSimpleArticleIFramePath};
|
| + for (unsigned i = 0; i < sizeof(paths) / sizeof(paths[0]); ++i) {
|
| + testing::InSequence dummy;
|
| + EXPECT_CALL(holder_, OnResult(true, false)).Times(1);
|
| + EXPECT_CALL(holder_, OnResult(true, true))
|
| + .WillOnce(testing::InvokeWithoutArgs(QuitSoon));
|
| + NavigateAndWait(paths[i], 0);
|
| + }
|
| + {
|
| + testing::InSequence dummy;
|
| + EXPECT_CALL(holder_, OnResult(false, false)).Times(1);
|
| + EXPECT_CALL(holder_, OnResult(false, true))
|
| + .WillOnce(testing::InvokeWithoutArgs(QuitSoon));
|
| + NavigateAndWait(kNonArticlePath, 0);
|
| + }
|
| +}
|
| +
|
| } // namespace dom_distiller
|
|
|