Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / pdf / pdf_extension_test_util.h
blob2c5c8b812b8982fe01e817f5a9e06a49cfd317dd
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_
8 namespace content {
9 class WebContents;
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_