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

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

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
Patch Set: . Created 4 years, 10 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/tests/application_manager_apptest_target.cc ('k') | mojo/shell/tests/capability_filter_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/tests/application_manager_unittest.cc
diff --git a/mojo/shell/tests/application_manager_unittest.cc b/mojo/shell/tests/application_manager_unittest.cc
index 51bcc15b3b734b837ae92ca4fbacb60ccf072378..bed3c741ace67bd14ceb2a2eb1589d520669beb9 100644
--- a/mojo/shell/tests/application_manager_unittest.cc
+++ b/mojo/shell/tests/application_manager_unittest.cc
@@ -16,6 +16,7 @@
#include "mojo/services/package_manager/package_manager.h"
#include "mojo/shell/application_loader.h"
#include "mojo/shell/connect_util.h"
+#include "mojo/shell/public/cpp/connector.h"
#include "mojo/shell/public/cpp/interface_factory.h"
#include "mojo/shell/public/cpp/shell_client.h"
#include "mojo/shell/public/cpp/shell_connection.h"
@@ -245,12 +246,12 @@ class TesterContext {
// Used to test that the requestor url will be correctly passed.
class TestAImpl : public TestA {
public:
- TestAImpl(Shell* shell,
+ TestAImpl(Connector* connector,
TesterContext* test_context,
InterfaceRequest<TestA> request,
InterfaceFactory<TestC>* factory)
: test_context_(test_context), binding_(this, std::move(request)) {
- connection_ = shell->Connect(kTestBURLString);
+ connection_ = connector->Connect(kTestBURLString);
connection_->AddInterface<TestC>(factory);
connection_->GetInterface(&b_);
}
@@ -368,7 +369,7 @@ class Tester : public ShellClient,
void Create(Connection* connection,
InterfaceRequest<TestA> request) override {
a_bindings_.push_back(
- new TestAImpl(app_.get(), context_, std::move(request), this));
+ new TestAImpl(app_->connector(), context_, std::move(request), this));
}
void Create(Connection* connection,
« no previous file with comments | « mojo/shell/tests/application_manager_apptest_target.cc ('k') | mojo/shell/tests/capability_filter_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698