diff options
author | sudarsana.nagineni <sudarsana.nagineni@intel.com> | 2015-01-30 16:26:19 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-31 00:27:26 +0000 |
commit | 745ff1db8cca6a4fdc0c19cf3edab909bd532457 (patch) | |
tree | e321c774ec842ad4e364ca721c661cd0254e8638 /chrome/browser/extensions/extension_function_test_utils.h | |
parent | 78bb92f45822e605c46d303b66a7bddc9706b9d3 (diff) | |
download | chromium_src-745ff1db8cca6a4fdc0c19cf3edab909bd532457.zip chromium_src-745ff1db8cca6a4fdc0c19cf3edab909bd532457.tar.gz chromium_src-745ff1db8cca6a4fdc0c19cf3edab909bd532457.tar.bz2 |
Move chrome.alarms API from chrome/ to extensions/.
This CL allows app_shell to use chrome.alarms.
Also it includes the following changes related to unit tests:
- Moved chrome.alarms tests to extensions/
- Moved a helper function CreateEmptyExtensionWithLocation()
from extension_function_test_utils.h to api_test_utils.h.
- Moved CreateBackgroundPage() from extension_api_unittest.h to
api_unittest.h.
- Creates WebContents for the extension that can be used to associate
a RenderViewHost in extension unit tests.
BUG=443622
Review URL: https://codereview.chromium.org/789643004
Cr-Commit-Position: refs/heads/master@{#314040}
Diffstat (limited to 'chrome/browser/extensions/extension_function_test_utils.h')
-rw-r--r-- | chrome/browser/extensions/extension_function_test_utils.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/extensions/extension_function_test_utils.h b/chrome/browser/extensions/extension_function_test_utils.h index 3c10c61..f19d506 100644 --- a/chrome/browser/extensions/extension_function_test_utils.h +++ b/chrome/browser/extensions/extension_function_test_utils.h @@ -40,11 +40,6 @@ base::DictionaryValue* ToDictionary(base::Value* val); // If |val| is a list, return it as one, otherwise NULL. base::ListValue* ToList(base::Value* val); -// Creates an extension instance with a specified location that can be attached -// to an ExtensionFunction before running. -scoped_refptr<extensions::Extension> CreateEmptyExtensionWithLocation( - extensions::Manifest::Location location); - // Returns true if |val| contains privacy information, e.g. url, // title, and faviconUrl. bool HasPrivacySensitiveFields(base::DictionaryValue* val); |