| 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_EXTENSION_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 kFlagNone = 0, | 30 kFlagNone = 0, |
| 31 | 31 |
| 32 // Allow the extension to run in incognito mode. | 32 // Allow the extension to run in incognito mode. |
| 33 kFlagEnableIncognito = 1 << 0, | 33 kFlagEnableIncognito = 1 << 0, |
| 34 | 34 |
| 35 // Allow file access for the extension. | 35 // Allow file access for the extension. |
| 36 kFlagEnableFileAccess = 1 << 1, | 36 kFlagEnableFileAccess = 1 << 1, |
| 37 | 37 |
| 38 // Don't fail when the loaded manifest has warnings (should only be used | 38 // Don't fail when the loaded manifest has warnings (should only be used |
| 39 // when testing deprecated features). | 39 // when testing deprecated features). |
| 40 kFlagIgnoreManifestWarnings = 1 << 2 | 40 kFlagIgnoreManifestWarnings = 1 << 2, |
| 41 |
| 42 // Allow older manifest versions (typically these can't be loaded - we allow |
| 43 // them for testing). |
| 44 kFlagAllowOldManifestVersions = 1 << 3, |
| 41 }; | 45 }; |
| 42 | 46 |
| 43 ExtensionBrowserTest(); | 47 ExtensionBrowserTest(); |
| 44 virtual ~ExtensionBrowserTest(); | 48 virtual ~ExtensionBrowserTest(); |
| 45 | 49 |
| 46 // InProcessBrowserTest | 50 // InProcessBrowserTest |
| 47 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; | 51 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; |
| 48 | 52 |
| 49 const extensions::Extension* LoadExtension(const FilePath& path); | 53 const extensions::Extension* LoadExtension(const FilePath& path); |
| 50 | 54 |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 245 |
| 242 // When waiting for visible page action count to change, we wait until it | 246 // When waiting for visible page action count to change, we wait until it |
| 243 // reaches this value. | 247 // reaches this value. |
| 244 int target_visible_page_action_count_; | 248 int target_visible_page_action_count_; |
| 245 | 249 |
| 246 // Make the current channel "dev" for the duration of the test. | 250 // Make the current channel "dev" for the duration of the test. |
| 247 extensions::Feature::ScopedCurrentChannel current_channel_; | 251 extensions::Feature::ScopedCurrentChannel current_channel_; |
| 248 }; | 252 }; |
| 249 | 253 |
| 250 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 254 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |