| 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_BROWSER_CHROMEOS_EXTENSIONS_VIRTUAL_KEYBOARD_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_VIRTUAL_KEYBOARD_BROWSERTEST_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_VIRTUAL_KEYBOARD_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_VIRTUAL_KEYBOARD_BROWSERTEST_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "chrome/test/base/in_process_browser_test.h" | 9 #include "chrome/test/base/in_process_browser_test.h" |
| 10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 void RunTest(const base::FilePath& file, | 45 void RunTest(const base::FilePath& file, |
| 46 const VirtualKeyboardBrowserTestConfig& config); | 46 const VirtualKeyboardBrowserTestConfig& config); |
| 47 | 47 |
| 48 void ShowVirtualKeyboard(); | 48 void ShowVirtualKeyboard(); |
| 49 | 49 |
| 50 // Returns the render view host that the keyboard with extension |id| is in. | 50 // Returns the render view host that the keyboard with extension |id| is in. |
| 51 content::RenderViewHost* GetKeyboardRenderViewHost(const std::string& id); | 51 content::RenderViewHost* GetKeyboardRenderViewHost(const std::string& id); |
| 52 | 52 |
| 53 // InProcessBrowserTest. | 53 // InProcessBrowserTest. |
| 54 // Ensure that the virtual keyboard is enabled. | 54 // Ensure that the virtual keyboard is enabled. |
| 55 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE; | 55 virtual void SetUpCommandLine(base::CommandLine* command_line) override; |
| 56 | 56 |
| 57 protected: | 57 protected: |
| 58 // Accumulates the javascript and injects it when the test starts. The test | 58 // Accumulates the javascript and injects it when the test starts. The test |
| 59 // |file| is in directory |dir| relative to the root testing directory. | 59 // |file| is in directory |dir| relative to the root testing directory. |
| 60 void InjectJavascript(const base::FilePath& dir, const base::FilePath& file); | 60 void InjectJavascript(const base::FilePath& dir, const base::FilePath& file); |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 std::string utf8_content_; | 63 std::string utf8_content_; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_VIRTUAL_KEYBOARD_BROWSERTEST_H_ | 66 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_VIRTUAL_KEYBOARD_BROWSERTEST_H_ |
| OLD | NEW |