1// Copyright 2014 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_TEST_REMOTING_QUNIT_BROWSER_TEST_RUNNER_H_ 6#define CHROME_TEST_REMOTING_QUNIT_BROWSER_TEST_RUNNER_H_ 7 8#include "chrome/test/base/in_process_browser_test.h" 9 10namespace content { 11class WebContents; 12} 13 14// Base class for browser tests that run QUnit tests. 15class QUnitBrowserTestRunner : public InProcessBrowserTest { 16 public: 17 // Runs the QUnit test suite in |file| and wait for it to complete. 18 void RunTest(const base::FilePath& file); 19 20 private: 21 void QUnitStart(content::WebContents* web_contents); 22}; 23 24#endif // CHROME_TEST_REMOTING_QUNIT_BROWSER_TEST_RUNNER_H_ 25