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

Unified Diff: components/resource_provider/resource_provider_test_app.cc

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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: components/resource_provider/resource_provider_test_app.cc
diff --git a/components/resource_provider/resource_provider_test_app.cc b/components/resource_provider/resource_provider_test_app.cc
index 8454dac431c5b56f2d589db56fec5ea45f8d288e..8cab63f8abddcaee584e1cd3de0407a6a80ca373 100644
--- a/components/resource_provider/resource_provider_test_app.cc
+++ b/components/resource_provider/resource_provider_test_app.cc
@@ -46,7 +46,7 @@ std::set<std::string> SetWithStrings(const std::string& contents1,
class Test : public mojom::Test {
public:
- explicit Test(mojo::Connector* connector) : connector_(connector) {}
+ explicit Test(shell::Connector* connector) : connector_(connector) {}
~Test() override {}
// mojom::Test:
@@ -78,30 +78,30 @@ class Test : public mojom::Test {
return results;
}
- mojo::Connector* connector_;
+ shell::Connector* connector_;
DISALLOW_COPY_AND_ASSIGN(Test);
};
-class TestApp : public mojo::ShellClient,
- public mojo::InterfaceFactory<mojom::Test> {
+class TestApp : public shell::ShellClient,
+ public shell::InterfaceFactory<mojom::Test> {
public:
TestApp() {}
~TestApp() override {}
- // mojo::ShellClient:
- void Initialize(mojo::Connector* connector,
- const mojo::Identity& identity,
+ // shell::ShellClient:
+ void Initialize(shell::Connector* connector,
+ const shell::Identity& identity,
uint32_t id) override {
test_.reset(new Test(connector));
}
- bool AcceptConnection(mojo::Connection* connection) override {
+ bool AcceptConnection(shell::Connection* connection) override {
connection->AddInterface<mojom::Test>(this);
return true;
}
// InterfaceFactory<mojom::Test>:
- void Create(mojo::Connection* connection,
+ void Create(shell::Connection* connection,
mojom::TestRequest request) override {
printf("test app create\n");
bindings_.AddBinding(test_.get(), std::move(request));
@@ -118,6 +118,6 @@ class TestApp : public mojo::ShellClient,
} // namespace resource_provider
MojoResult MojoMain(MojoHandle shell_handle) {
- return mojo::ApplicationRunner(new resource_provider::test::TestApp)
+ return shell::ApplicationRunner(new resource_provider::test::TestApp)
.Run(shell_handle);
}
« no previous file with comments | « components/resource_provider/resource_provider_app.cc ('k') | components/resource_provider/resource_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698