OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_WEBUI_WEB_UI_BROWSERTEST_H_ | 5 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_BROWSERTEST_H_ |
6 #define CHROME_BROWSER_WEBUI_WEB_UI_BROWSERTEST_H_ | 6 #define CONTENT_BROWSER_WEBUI_WEB_UI_BROWSERTEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "chrome/browser/webui/web_ui_handler_browsertest.h" | |
13 #include "chrome/test/in_process_browser_test.h" | 12 #include "chrome/test/in_process_browser_test.h" |
| 13 #include "content/browser/webui/web_ui_handler_browsertest.h" |
14 | 14 |
15 class WebUIMessageHandler; | 15 class WebUIMessageHandler; |
16 | 16 |
17 // The runner of WebUI javascript based tests. | 17 // The runner of WebUI javascript based tests. |
18 // See chrome/test/data/webui/test_api.js for the javascript side test API's. | 18 // See chrome/test/data/webui/test_api.js for the javascript side test API's. |
19 // | 19 // |
20 // These tests should follow the form given in: | 20 // These tests should follow the form given in: |
21 // chrome/test/data/webui/sample_downloads.js. | 21 // chrome/test/data/webui/sample_downloads.js. |
22 // and the lone test within this class. | 22 // and the lone test within this class. |
23 class WebUIBrowserTest : public InProcessBrowserTest { | 23 class WebUIBrowserTest : public InProcessBrowserTest { |
(...skipping 24 matching lines...) Expand all Loading... |
48 // Attaches mock and test handlers. | 48 // Attaches mock and test handlers. |
49 void SetupHandlers(); | 49 void SetupHandlers(); |
50 | 50 |
51 // Handles test framework messages. | 51 // Handles test framework messages. |
52 scoped_ptr<WebUIHandlerBrowserTest> test_handler_; | 52 scoped_ptr<WebUIHandlerBrowserTest> test_handler_; |
53 | 53 |
54 // Location of test data (currently test/data/webui). | 54 // Location of test data (currently test/data/webui). |
55 FilePath test_data_directory_; | 55 FilePath test_data_directory_; |
56 }; | 56 }; |
57 | 57 |
58 #endif // CHROME_BROWSER_WEBUI_WEB_UI_BROWSERTEST_H_ | 58 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_BROWSERTEST_H_ |
OLD | NEW |