OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ |
7 | 7 |
8 | 8 |
9 #include "chrome/browser/extensions/extension_apitest.h" | 9 #include "chrome/browser/extensions/extension_apitest.h" |
10 #include "chrome/browser/ui/extensions/shell_window.h" | 10 #include "chrome/browser/ui/extensions/shell_window.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class WebContents; | 13 class WebContents; |
14 } | 14 } |
15 | 15 |
16 class CommandLine; | 16 class CommandLine; |
17 class ShellWindow; | 17 class ShellWindow; |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 class Extension; | 20 class Extension; |
21 | 21 |
22 class PlatformAppBrowserTest : public ExtensionApiTest { | 22 class PlatformAppBrowserTest : public ExtensionApiTest { |
23 public: | 23 public: |
| 24 PlatformAppBrowserTest(); |
| 25 |
24 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 26 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
25 | 27 |
26 protected: | 28 protected: |
27 // Runs the app named |name| out of the platform_apps subdirectory. Waits | 29 // Runs the app named |name| out of the platform_apps subdirectory. Waits |
28 // until it is launched. | 30 // until it is launched. |
29 const Extension* LoadAndLaunchPlatformApp(const char* name); | 31 const Extension* LoadAndLaunchPlatformApp(const char* name); |
30 | 32 |
31 // Installs and runs the app named |name| out of the platform_apps | 33 // Installs and runs the app named |name| out of the platform_apps |
32 // subdirectory. Waits until it is launched. | 34 // subdirectory. Waits until it is launched. |
33 const Extension* InstallAndLaunchPlatformApp(const char* name); | 35 const Extension* InstallAndLaunchPlatformApp(const char* name); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 }; | 74 }; |
73 | 75 |
74 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest { | 76 class ExperimentalPlatformAppBrowserTest : public PlatformAppBrowserTest { |
75 public: | 77 public: |
76 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 78 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
77 }; | 79 }; |
78 | 80 |
79 } | 81 } |
80 | 82 |
81 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ | 83 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_BROWSERTEST_UTIL_H_ |
OLD | NEW |