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.
5 #ifndef CHROME_BROWSER_PDF_PDF_EXTENSION_TEST_UTIL_H_
6 #define CHROME_BROWSER_PDF_PDF_EXTENSION_TEST_UTIL_H_
10 } // namespace content
12 namespace pdf_extension_test_util
{
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
);
20 } // namespace pdf_extension_test_util
22 #endif // CHROME_BROWSER_PDF_PDF_EXTENSION_TEST_UTIL_H_