Index: extensions/browser/api_test_utils.cc |
diff --git a/extensions/browser/api_test_utils.cc b/extensions/browser/api_test_utils.cc |
index 8d215a5fc29d961dfabbea9790e13310844f1dee..2e691f8ee90e301b61f5f7424345dc5fdb77b128 100644 |
--- a/extensions/browser/api_test_utils.cc |
+++ b/extensions/browser/api_test_utils.cc |
@@ -135,6 +135,15 @@ scoped_refptr<Extension> CreateExtension( |
std::string()); |
} |
+scoped_refptr<Extension> CreateEmptyExtensionWithLocation( |
+ Manifest::Location location) { |
+ scoped_ptr<base::DictionaryValue> test_extension_value( |
James Cook
2015/01/17 00:51:28
This looks like it is copied from //chrome. Can yo
babu
2015/01/17 11:53:56
Done.
Moved this helper function from extension_f
|
+ extensions::api_test_utils::ParseDictionary( |
+ "{\"name\": \"Test\", \"version\": \"1.0\"}")); |
+ return extensions::api_test_utils::CreateExtension( |
+ location, test_extension_value.get(), std::string()); |
+} |
+ |
base::Value* RunFunctionWithDelegateAndReturnSingleResult( |
UIThreadExtensionFunction* function, |
const std::string& args, |