summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_function_test_utils.h
diff options
context:
space:
mode:
authorncj674@motorola.com <ncj674@motorola.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-10 15:09:57 +0000
committerncj674@motorola.com <ncj674@motorola.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-10 15:09:57 +0000
commit37bb582bd18aece7075e55cc4b69ba3f73b725ae (patch)
tree367b9a78e17c753bb985444cebc55149233dd4c8 /chrome/browser/extensions/extension_function_test_utils.h
parent70771b498462cca3a79d0b80810f9afa87e7ffb8 (diff)
downloadchromium_src-37bb582bd18aece7075e55cc4b69ba3f73b725ae.zip
chromium_src-37bb582bd18aece7075e55cc4b69ba3f73b725ae.tar.gz
chromium_src-37bb582bd18aece7075e55cc4b69ba3f73b725ae.tar.bz2
Tabs Extension: Implementation of tabs.duplicate api.
BUG=36007 TEST=Manual: Tested with an extension with/without "tabs" permission. Automated: unittest: ExtensionTabsTest.DuplicateTabNoPermission, ExtensionPermissionsTest.DefaultFunctionAccess, ExtensionTest.ApiPermissions apitest: ExtensionApiTest.TabDuplicate Review URL: https://chromiumcodereview.appspot.com/10697017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155731 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function_test_utils.h')
-rw-r--r--chrome/browser/extensions/extension_function_test_utils.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_function_test_utils.h b/chrome/browser/extensions/extension_function_test_utils.h
index 7bcf84d..cea6e78 100644
--- a/chrome/browser/extensions/extension_function_test_utils.h
+++ b/chrome/browser/extensions/extension_function_test_utils.h
@@ -54,6 +54,19 @@ scoped_refptr<extensions::Extension> CreateEmptyExtension();
scoped_refptr<extensions::Extension> CreateEmptyExtensionWithLocation(
extensions::Extension::Location location);
+// Creates an extension instance with a specified extension value that can be
+// attached to an ExtensionFunction before running.
+scoped_refptr<extensions::Extension> CreateExtension(
+ base::DictionaryValue* test_extension_value);
+
+scoped_refptr<extensions::Extension> CreateExtension(
+ extensions::Extension::Location location,
+ base::DictionaryValue* test_extension_value);
+
+// Returns true if |val| contains privacy information, e.g. url,
+// title, and faviconUrl.
+bool HasPrivacySensitiveFields(base::DictionaryValue* val);
+
enum RunFunctionFlags {
NONE = 0,
INCLUDE_INCOGNITO = 1 << 0