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

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

Issue 1775243002: Rename PackageManager->Catalog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@42cpi
Patch Set: . 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
Index: mojo/shell/background/tests/test_application_catalog_store.cc
diff --git a/mojo/shell/background/tests/test_application_catalog_store.cc b/mojo/shell/background/tests/test_application_catalog_store.cc
deleted file mode 100644
index d5de582674af2ea8e0e1cc92565bb81d5a0e324d..0000000000000000000000000000000000000000
--- a/mojo/shell/background/tests/test_application_catalog_store.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mojo/shell/background/tests/test_application_catalog_store.h"
-
-using package_manager::ApplicationCatalogStore;
-
-namespace mojo {
-namespace shell {
-
-TestApplicationCatalogStore::TestApplicationCatalogStore(
- scoped_ptr<base::ListValue> store)
- : store_(std::move(store)) {}
-
-TestApplicationCatalogStore::~TestApplicationCatalogStore() {}
-
-const base::ListValue* TestApplicationCatalogStore::GetStore() {
- get_store_called_ = true;
- return store_.get();
-}
-
-void TestApplicationCatalogStore::UpdateStore(
- scoped_ptr<base::ListValue> store) {}
-
-scoped_ptr<base::DictionaryValue> BuildPermissiveSerializedAppInfo(
- const std::string& name,
- const std::string& display_name) {
- scoped_ptr<base::DictionaryValue> app(new base::DictionaryValue);
- app->SetString(ApplicationCatalogStore::kNameKey, name);
- app->SetString(ApplicationCatalogStore::kDisplayNameKey, display_name);
-
- scoped_ptr<base::DictionaryValue> capabilities(new base::DictionaryValue);
- scoped_ptr<base::ListValue> interfaces(new base::ListValue);
- interfaces->AppendString("*");
- capabilities->Set("*", std::move(interfaces));
-
- app->Set(ApplicationCatalogStore::kCapabilitiesKey, std::move(capabilities));
-
- return app;
-}
-
-} // namespace shell
-} // namespace mojo
« no previous file with comments | « mojo/shell/background/tests/test_application_catalog_store.h ('k') | mojo/shell/background/tests/test_catalog_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698