Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: extensions/browser/api_test_utils.cc

Issue 789643004: Move chrome.alarms API from chrome/ to extensions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move tests to extensions/. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,

Powered by Google App Engine
This is Rietveld 408576698