OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_PDF_PDF_EXTENSION_TEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_PDF_PDF_EXTENSION_TEST_UTIL_H_ |
| 7 |
| 8 namespace content { |
| 9 class WebContents; |
| 10 } // namespace content |
| 11 |
| 12 namespace pdf_extension_test_util { |
| 13 |
| 14 // Ensures through PDFScriptingAPI that a PDF has finished loading inside the |
| 15 // given |web_contents|. |
| 16 // Returns true if it loads successfully or false if it fails. If it doesn't |
| 17 // finish loading the test will hang. |
| 18 bool EnsurePDFHasLoaded(content::WebContents* web_contents); |
| 19 |
| 20 } // namespace pdf_extension_test_util |
| 21 |
| 22 #endif // CHROME_BROWSER_PDF_PDF_EXTENSION_TEST_UTIL_H_ |
OLD | NEW |