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. This is done from outside of the | |
18 // BrowserPluginGuest to ensure the PDFScriptingAPI works correctly from there. | |
raymes
2015/07/21 04:20:36
You can remove the last sentence. It doesn't make
lazyboy
2015/07/21 06:32:23
Done.
| |
19 bool EnsurePDFHasLoaded(content::WebContents* web_contents); | |
20 | |
21 } // namespace pdf_extension_test_util | |
22 | |
23 #endif // CHROME_BROWSER_PDF_PDF_EXTENSION_TEST_UTIL_H_ | |
OLD | NEW |