| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_TEST_BASE_EXTENSION_JS_BROWSER_TEST_H_ | 5 #ifndef CHROME_TEST_BASE_EXTENSION_JS_BROWSER_TEST_H_ |
| 6 #define CHROME_TEST_BASE_EXTENSION_JS_BROWSER_TEST_H_ | 6 #define CHROME_TEST_BASE_EXTENSION_JS_BROWSER_TEST_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/macros.h" |
| 9 #include "chrome/test/base/extension_load_waiter_one_shot.h" | 10 #include "chrome/test/base/extension_load_waiter_one_shot.h" |
| 10 #include "chrome/test/base/javascript_browser_test.h" | 11 #include "chrome/test/base/javascript_browser_test.h" |
| 11 | 12 |
| 12 // A super class that handles javascript-based tests against an extension. | 13 // A super class that handles javascript-based tests against an extension. |
| 13 // | 14 // |
| 14 // See an example usage at | 15 // See an example usage at |
| 15 //chrome/browser/resources/chromeos/chromevox2/cvox2/background/background.extjs | 16 //chrome/browser/resources/chromeos/chromevox2/cvox2/background/background.extjs |
| 16 class ExtensionJSBrowserTest : public JavaScriptBrowserTest { | 17 class ExtensionJSBrowserTest : public JavaScriptBrowserTest { |
| 17 public: | 18 public: |
| 18 ExtensionJSBrowserTest(); | 19 ExtensionJSBrowserTest(); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 30 const std::string& test_name); | 31 const std::string& test_name); |
| 31 | 32 |
| 32 private: | 33 private: |
| 33 scoped_ptr<ExtensionLoadWaiterOneShot> load_waiter_; | 34 scoped_ptr<ExtensionLoadWaiterOneShot> load_waiter_; |
| 34 bool libs_loaded_; | 35 bool libs_loaded_; |
| 35 | 36 |
| 36 DISALLOW_COPY_AND_ASSIGN(ExtensionJSBrowserTest); | 37 DISALLOW_COPY_AND_ASSIGN(ExtensionJSBrowserTest); |
| 37 }; | 38 }; |
| 38 | 39 |
| 39 #endif // CHROME_TEST_BASE_EXTENSION_JS_BROWSER_TEST_H_ | 40 #endif // CHROME_TEST_BASE_EXTENSION_JS_BROWSER_TEST_H_ |
| OLD | NEW |