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

Unified Diff: extensions/common/test_util.cc

Issue 594003002: Added unit tests for ChromePermissionMessageProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed up comments/naming Created 6 years, 3 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
« no previous file with comments | « extensions/common/test_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/test_util.cc
diff --git a/extensions/common/test_util.cc b/extensions/common/test_util.cc
index e7efeb02a2704c43756d84661907a661f41ec17b..dafbca23e4a0fda75cde4ce124e3b0982f4d4555 100644
--- a/extensions/common/test_util.cc
+++ b/extensions/common/test_util.cc
@@ -19,6 +19,20 @@ ExtensionBuilder& BuildExtension(ExtensionBuilder& builder) {
.Set("manifest_version", 2));
}
+ExtensionBuilder& BuildApp(ExtensionBuilder& builder) {
+ return builder.SetManifest(
+ DictionaryBuilder()
+ .Set("name", "Test extension")
+ .Set("version", "1.0")
+ .Set("manifest_version", 2)
+ .Set("app",
+ extensions::DictionaryBuilder().Set(
+ "background",
+ extensions::DictionaryBuilder().Set(
+ "scripts",
+ extensions::ListBuilder().Append("background.js")))));
+}
+
scoped_refptr<Extension> CreateEmptyExtension() {
return ExtensionBuilder()
.SetManifest(
« no previous file with comments | « extensions/common/test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698