From 37bb582bd18aece7075e55cc4b69ba3f73b725ae Mon Sep 17 00:00:00 2001 From: "ncj674@motorola.com" Date: Mon, 10 Sep 2012 15:09:57 +0000 Subject: 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 --- chrome/browser/extensions/extension_function_test_utils.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'chrome/browser/extensions/extension_function_test_utils.h') 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 CreateEmptyExtension(); scoped_refptr 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 CreateExtension( + base::DictionaryValue* test_extension_value); + +scoped_refptr 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 -- cgit v1.1