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

Side by Side 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: cleanup 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/shell/background/tests/test_catalog_store.h" 5 #include "mojo/shell/background/tests/test_catalog_store.h"
6 6
7 using catalog::Store; 7 using catalog::Store;
8 8
9 namespace mojo { 9 namespace mojo {
10 namespace shell { 10 namespace shell {
(...skipping 10 matching lines...) Expand all
21 21
22 void TestCatalogStore::UpdateStore( 22 void TestCatalogStore::UpdateStore(
23 scoped_ptr<base::ListValue> store) {} 23 scoped_ptr<base::ListValue> store) {}
24 24
25 scoped_ptr<base::DictionaryValue> BuildPermissiveSerializedAppInfo( 25 scoped_ptr<base::DictionaryValue> BuildPermissiveSerializedAppInfo(
26 const std::string& name, 26 const std::string& name,
27 const std::string& display_name) { 27 const std::string& display_name) {
28 scoped_ptr<base::DictionaryValue> app(new base::DictionaryValue); 28 scoped_ptr<base::DictionaryValue> app(new base::DictionaryValue);
29 app->SetString(Store::kNameKey, name); 29 app->SetString(Store::kNameKey, name);
30 app->SetString(Store::kDisplayNameKey, display_name); 30 app->SetString(Store::kDisplayNameKey, display_name);
31 app->SetInteger(Store::kManifestVersionKey, 1);
31 32
32 scoped_ptr<base::DictionaryValue> capabilities(new base::DictionaryValue); 33 scoped_ptr<base::DictionaryValue> capabilities(new base::DictionaryValue);
33 scoped_ptr<base::ListValue> interfaces(new base::ListValue); 34 scoped_ptr<base::DictionaryValue> required_capabilities(
34 interfaces->AppendString("*"); 35 new base::DictionaryValue);
35 capabilities->Set("*", std::move(interfaces)); 36 scoped_ptr<base::DictionaryValue> interfaces_dictionary(
36 37 new base::DictionaryValue);
38 scoped_ptr<base::ListValue> interfaces_list(new base::ListValue);
39 interfaces_list->AppendString("*");
40 interfaces_dictionary->Set("interfaces", std::move(interfaces_list));
41 required_capabilities->Set("*", std::move(interfaces_dictionary));
42 capabilities->Set(Store::kCapabilities_RequiredKey,
43 std::move(required_capabilities));
37 app->Set(Store::kCapabilitiesKey, std::move(capabilities)); 44 app->Set(Store::kCapabilitiesKey, std::move(capabilities));
38
39 return app; 45 return app;
40 } 46 }
41 47
42 } // namespace shell 48 } // namespace shell
43 } // namespace mojo 49 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698