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

Unified Diff: mojo/shell/tests/loader_unittest.cc

Issue 1791663002: Allow Catalogs to be constructed per-user (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@49catalog
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/standalone/context.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/tests/loader_unittest.cc
diff --git a/mojo/shell/tests/loader_unittest.cc b/mojo/shell/tests/loader_unittest.cc
index 111c0bd793f8ae5618dbc4615fb5d4455c8d3028..773bc958755a92ec470bcb3b56e836ff523bcef2 100644
--- a/mojo/shell/tests/loader_unittest.cc
+++ b/mojo/shell/tests/loader_unittest.cc
@@ -11,7 +11,7 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
-#include "mojo/services/catalog/owner.h"
+#include "mojo/services/catalog/factory.h"
#include "mojo/services/catalog/store.h"
#include "mojo/shell/connect_util.h"
#include "mojo/shell/loader.h"
@@ -402,7 +402,7 @@ class LoaderTest : public testing::Test {
void SetUp() override {
blocking_pool_ = new base::SequencedWorkerPool(3, "blocking_pool");
- catalog_.reset(new catalog::Owner(blocking_pool_.get(), nullptr));
+ catalog_.reset(new catalog::Factory(blocking_pool_.get(), nullptr));
shell_.reset(new Shell(nullptr, catalog_->TakeShellClient()));
test_loader_ = new TestLoader(&context_);
shell_->set_default_loader(scoped_ptr<Loader>(test_loader_));
@@ -453,7 +453,7 @@ class LoaderTest : public testing::Test {
TestContext context_;
base::MessageLoop loop_;
scoped_ptr<TestClient> test_client_;
- scoped_ptr<catalog::Owner> catalog_;
+ scoped_ptr<catalog::Factory> catalog_;
scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
scoped_ptr<Shell> shell_;
DISALLOW_COPY_AND_ASSIGN(LoaderTest);
@@ -478,7 +478,7 @@ TEST_F(LoaderTest, ClientError) {
TEST_F(LoaderTest, Deletes) {
{
- catalog::Owner catalog(blocking_pool_.get(), nullptr);
+ catalog::Factory catalog(blocking_pool_.get(), nullptr);
Shell shell(nullptr, catalog.TakeShellClient());
TestLoader* default_loader = new TestLoader(&context_);
TestLoader* name_loader1 = new TestLoader(&context_);
« no previous file with comments | « mojo/shell/standalone/context.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698