| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <string.h> | 5 #include <string.h> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/message_loop/message_loop.h" |
| 8 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 9 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 11 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
| 13 #include "chrome/test/base/ui_test_utils.h" | 14 #include "chrome/test/base/ui_test_utils.h" |
| 14 #include "components/dom_distiller/content/browser/distillable_page_utils.h" | 15 #include "components/dom_distiller/content/browser/distillable_page_utils.h" |
| 15 #include "components/dom_distiller/core/dom_distiller_switches.h" | 16 #include "components/dom_distiller/core/dom_distiller_switches.h" |
| 16 #include "content/public/test/browser_test_utils.h" | 17 #include "content/public/test/browser_test_utils.h" |
| 17 #include "content/public/test/test_utils.h" | 18 #include "content/public/test/test_utils.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 { | 197 { |
| 197 testing::InSequence dummy; | 198 testing::InSequence dummy; |
| 198 EXPECT_CALL(holder_, OnResult(false, false)).Times(1); | 199 EXPECT_CALL(holder_, OnResult(false, false)).Times(1); |
| 199 EXPECT_CALL(holder_, OnResult(false, true)) | 200 EXPECT_CALL(holder_, OnResult(false, true)) |
| 200 .WillOnce(testing::InvokeWithoutArgs(QuitSoon)); | 201 .WillOnce(testing::InvokeWithoutArgs(QuitSoon)); |
| 201 NavigateAndWait(kNonArticlePath, 0); | 202 NavigateAndWait(kNonArticlePath, 0); |
| 202 } | 203 } |
| 203 } | 204 } |
| 204 | 205 |
| 205 } // namespace dom_distiller | 206 } // namespace dom_distiller |
| OLD | NEW |