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

Unified Diff: mojo/shell/application_manager_apptest.cc

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
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/services/tracing/tracing_app.cc ('k') | mojo/shell/application_manager_apptest_driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/application_manager_apptest.cc
diff --git a/mojo/shell/application_manager_apptest.cc b/mojo/shell/application_manager_apptest.cc
index fb6517ef6a2808daa96ecd0f555d0539419040f8..5091d450057314667fca961f5e6cd03220cbdb13 100644
--- a/mojo/shell/application_manager_apptest.cc
+++ b/mojo/shell/application_manager_apptest.cc
@@ -26,7 +26,7 @@ namespace shell {
namespace {
class ApplicationManagerAppTestDelegate
- : public ApplicationDelegate,
+ : public ShellClient,
public InterfaceFactory<CreateInstanceForHandleTest>,
public CreateInstanceForHandleTest {
public:
@@ -38,17 +38,16 @@ class ApplicationManagerAppTestDelegate
uint32_t target_id() const { return target_id_; }
private:
- // ApplicationDelegate:
+ // mojo::ShellClient:
void Initialize(Shell* shell, const std::string& url, uint32_t id) override {}
- bool AcceptConnection(ApplicationConnection* connection) override {
+ bool AcceptConnection(Connection* connection) override {
connection->AddService<CreateInstanceForHandleTest>(this);
return true;
}
// InterfaceFactory<CreateInstanceForHandleTest>:
- void Create(
- ApplicationConnection* connection,
- InterfaceRequest<CreateInstanceForHandleTest> request) override {
+ void Create(Connection* connection,
+ InterfaceRequest<CreateInstanceForHandleTest> request) override {
binding_.Bind(std::move(request));
}
@@ -123,7 +122,7 @@ class ApplicationManagerAppTest : public mojo::test::ApplicationTestBase,
private:
// test::ApplicationTestBase:
- ApplicationDelegate* GetApplicationDelegate() override {
+ ShellClient* GetShellClient() override {
delegate_ = new ApplicationManagerAppTestDelegate;
return delegate_;
}
@@ -174,7 +173,7 @@ TEST_F(ApplicationManagerAppTest, CreateInstanceForHandle) {
// 1. Launch a process. (Actually, have the runner launch a process that
// launches a process. #becauselinkerrors).
mojo::shell::test::mojom::DriverPtr driver;
- scoped_ptr<ApplicationConnection> connection =
+ scoped_ptr<Connection> connection =
shell()->ConnectToApplication("exe:application_manager_apptest_driver");
connection->ConnectToService(&driver);
« no previous file with comments | « mojo/services/tracing/tracing_app.cc ('k') | mojo/shell/application_manager_apptest_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698