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

Unified Diff: mojo/shell/background/tests/test_catalog_store.cc

Issue 1806353003: Adds option to run browser tests in mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 4 years, 9 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 | « mojo/shell/background/background_shell.cc ('k') | mojo/shell/standalone/context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/background/tests/test_catalog_store.cc
diff --git a/mojo/shell/background/tests/test_catalog_store.cc b/mojo/shell/background/tests/test_catalog_store.cc
index 32a1aa4f1036b478fccb8febee50bfc2f474e786..41daf828a7b249069f688de5b6c4ca9285cb6dc4 100644
--- a/mojo/shell/background/tests/test_catalog_store.cc
+++ b/mojo/shell/background/tests/test_catalog_store.cc
@@ -28,14 +28,20 @@ scoped_ptr<base::DictionaryValue> BuildPermissiveSerializedAppInfo(
scoped_ptr<base::DictionaryValue> app(new base::DictionaryValue);
app->SetString(Store::kNameKey, name);
app->SetString(Store::kDisplayNameKey, display_name);
+ app->SetInteger(Store::kManifestVersionKey, 1);
scoped_ptr<base::DictionaryValue> capabilities(new base::DictionaryValue);
- scoped_ptr<base::ListValue> interfaces(new base::ListValue);
- interfaces->AppendString("*");
- capabilities->Set("*", std::move(interfaces));
-
+ scoped_ptr<base::DictionaryValue> required_capabilities(
+ new base::DictionaryValue);
+ scoped_ptr<base::DictionaryValue> interfaces_dictionary(
+ new base::DictionaryValue);
+ scoped_ptr<base::ListValue> interfaces_list(new base::ListValue);
+ interfaces_list->AppendString("*");
+ interfaces_dictionary->Set("interfaces", std::move(interfaces_list));
+ required_capabilities->Set("*", std::move(interfaces_dictionary));
+ capabilities->Set(Store::kCapabilities_RequiredKey,
+ std::move(required_capabilities));
app->Set(Store::kCapabilitiesKey, std::move(capabilities));
-
return app;
}
« no previous file with comments | « mojo/shell/background/background_shell.cc ('k') | mojo/shell/standalone/context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698