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

Unified Diff: mojo/shell/background/tests/background_shell_unittest.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
« no previous file with comments | « mojo/shell/background/tests/BUILD.gn ('k') | mojo/shell/background/tests/test_application_catalog_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/background/tests/background_shell_unittest.cc
diff --git a/mojo/shell/background/tests/background_shell_unittest.cc b/mojo/shell/background/tests/background_shell_unittest.cc
index ccaf3ea414580cb9e969591ea9fce3d35db91195..82b36b1d5af7522940e77846525c261608a0ba65 100644
--- a/mojo/shell/background/tests/background_shell_unittest.cc
+++ b/mojo/shell/background/tests/background_shell_unittest.cc
@@ -6,7 +6,7 @@
#include "base/run_loop.h"
#include "mojo/shell/background/tests/test.mojom.h"
-#include "mojo/shell/background/tests/test_application_catalog_store.h"
+#include "mojo/shell/background/tests/test_catalog_store.h"
#include "mojo/shell/public/cpp/connector.h"
#include "mojo/shell/public/cpp/shell_client.h"
#include "mojo/shell/public/cpp/shell_connection.h"
@@ -27,10 +27,10 @@ class ShellClientImpl : public ShellClient {
DISALLOW_COPY_AND_ASSIGN(ShellClientImpl);
};
-scoped_ptr<TestApplicationCatalogStore> BuildTestApplicationCatalogStore() {
+scoped_ptr<TestCatalogStore> BuildTestCatalogStore() {
scoped_ptr<base::ListValue> apps(new base::ListValue);
apps->Append(BuildPermissiveSerializedAppInfo(kTestName, "test"));
- return make_scoped_ptr(new TestApplicationCatalogStore(std::move(apps)));
+ return make_scoped_ptr(new TestCatalogStore(std::move(apps)));
}
} // namespace
@@ -50,10 +50,9 @@ TEST(BackgroundShellTest, MAYBE_Basic) {
BackgroundShell background_shell;
scoped_ptr<BackgroundShell::InitParams> init_params(
new BackgroundShell::InitParams);
- scoped_ptr<TestApplicationCatalogStore> store_ptr =
- BuildTestApplicationCatalogStore();
- TestApplicationCatalogStore* store = store_ptr.get();
- init_params->app_catalog = std::move(store_ptr);
+ scoped_ptr<TestCatalogStore> store_ptr = BuildTestCatalogStore();
+ TestCatalogStore* store = store_ptr.get();
+ init_params->catalog_store = std::move(store_ptr);
background_shell.Init(std::move(init_params));
ShellClientImpl shell_client;
ShellConnection shell_connection(
« no previous file with comments | « mojo/shell/background/tests/BUILD.gn ('k') | mojo/shell/background/tests/test_application_catalog_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698