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

Side by Side Diff: services/service_manager/background/tests/test_catalog_store.cc

Issue 2427443002: Replace remaining shell references with service manager (Closed)
Patch Set: Created 4 years, 2 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 "services/service_manager/background/tests/test_catalog_store.h" 5 #include "services/service_manager/background/tests/test_catalog_store.h"
6 6
7 using catalog::Store; 7 using catalog::Store;
8 8
9 namespace service_manager { 9 namespace service_manager {
10 10
(...skipping 17 matching lines...) Expand all
28 app->SetString(Store::kDisplayNameKey, display_name); 28 app->SetString(Store::kDisplayNameKey, display_name);
29 app->SetInteger(Store::kManifestVersionKey, 1); 29 app->SetInteger(Store::kManifestVersionKey, 1);
30 30
31 std::unique_ptr<base::DictionaryValue> capabilities( 31 std::unique_ptr<base::DictionaryValue> capabilities(
32 new base::DictionaryValue); 32 new base::DictionaryValue);
33 std::unique_ptr<base::DictionaryValue> provided_classes( 33 std::unique_ptr<base::DictionaryValue> provided_classes(
34 new base::DictionaryValue); 34 new base::DictionaryValue);
35 std::unique_ptr<base::ListValue> provided_classes_list( 35 std::unique_ptr<base::ListValue> provided_classes_list(
36 new base::ListValue); 36 new base::ListValue);
37 provided_classes_list->AppendString("service_manager::mojom::TestService"); 37 provided_classes_list->AppendString("service_manager::mojom::TestService");
38 provided_classes->Set("shell:test_service", std::move(provided_classes_list)); 38 provided_classes->Set("service_manager:test_service",
39 std::move(provided_classes_list));
39 capabilities->Set(Store::kCapabilities_ProvidedKey, 40 capabilities->Set(Store::kCapabilities_ProvidedKey,
40 std::move(provided_classes)); 41 std::move(provided_classes));
41 std::unique_ptr<base::DictionaryValue> required_capabilities( 42 std::unique_ptr<base::DictionaryValue> required_capabilities(
42 new base::DictionaryValue); 43 new base::DictionaryValue);
43 std::unique_ptr<base::DictionaryValue> classes_dictionary( 44 std::unique_ptr<base::DictionaryValue> classes_dictionary(
44 new base::DictionaryValue); 45 new base::DictionaryValue);
45 std::unique_ptr<base::ListValue> classes_list(new base::ListValue); 46 std::unique_ptr<base::ListValue> classes_list(new base::ListValue);
46 classes_list->AppendString("shell:test_service"); 47 classes_list->AppendString("service_manager:test_service");
47 classes_dictionary->Set("classes", std::move(classes_list)); 48 classes_dictionary->Set("classes", std::move(classes_list));
48 required_capabilities->Set("*", std::move(classes_dictionary)); 49 required_capabilities->Set("*", std::move(classes_dictionary));
49 capabilities->Set(Store::kCapabilities_RequiredKey, 50 capabilities->Set(Store::kCapabilities_RequiredKey,
50 std::move(required_capabilities)); 51 std::move(required_capabilities));
51 app->Set(Store::kCapabilitiesKey, std::move(capabilities)); 52 app->Set(Store::kCapabilitiesKey, std::move(capabilities));
52 return app; 53 return app;
53 } 54 }
54 55
55 } // namespace service_manager 56 } // namespace service_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698