| Index: 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 cea6e78a982f86cb1eff0fa8bd246d18e5d91778..e42c1d52835a1daa1f80262782ae8deccc79b556 100644
|
| --- a/chrome/browser/extensions/extension_function_test_utils.h
|
| +++ b/chrome/browser/extensions/extension_function_test_utils.h
|
| @@ -54,6 +54,20 @@ scoped_refptr<extensions::Extension> CreateEmptyExtension();
|
| scoped_refptr<extensions::Extension> CreateEmptyExtensionWithLocation(
|
| extensions::Extension::Location location);
|
|
|
| +// Creates an empty extension with a variable ID, for tests that require
|
| +// multiple extensions side-by-side having distinct IDs. If not empty, then
|
| +// id_input is passed directly to Extension::CreateId() and thus has the same
|
| +// behavior as that method. If id_input is empty, then Extension::Create()
|
| +// receives an empty explicit ID and generates an appropriate ID for a blank
|
| +// extension.
|
| +scoped_refptr<extensions::Extension> CreateEmptyExtension(
|
| + const std::string& id_input);
|
| +
|
| +scoped_refptr<extensions::Extension> CreateExtension(
|
| + extensions::Extension::Location location,
|
| + base::DictionaryValue* test_extension_value,
|
| + const std::string& id_input);
|
| +
|
| // Creates an extension instance with a specified extension value that can be
|
| // attached to an ExtensionFunction before running.
|
| scoped_refptr<extensions::Extension> CreateExtension(
|
|
|