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

Unified Diff: services/shell/tests/connect/connect_test_exe.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: services/shell/tests/connect/connect_test_exe.cc
diff --git a/services/shell/tests/connect/connect_test_exe.cc b/services/shell/tests/connect/connect_test_exe.cc
index 4bf6fd5bf31eef04d5f2e85366fa0e9445a8139e..460b518e275e2e08c387cd725cbc40f42f970a9e 100644
--- a/services/shell/tests/connect/connect_test_exe.cc
+++ b/services/shell/tests/connect/connect_test_exe.cc
@@ -13,31 +13,32 @@
#include "services/shell/runner/init.h"
#include "services/shell/tests/connect/connect_test.mojom.h"
-using mojo::shell::test::mojom::ConnectTestService;
-using mojo::shell::test::mojom::ConnectTestServiceRequest;
+using shell::test::mojom::ConnectTestService;
+using shell::test::mojom::ConnectTestServiceRequest;
namespace {
-class Target : public mojo::ShellClient,
- public mojo::InterfaceFactory<ConnectTestService>,
+class Target : public shell::ShellClient,
+ public shell::InterfaceFactory<ConnectTestService>,
public ConnectTestService {
public:
Target() {}
~Target() override {}
private:
- // 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 {
identity_ = identity;
}
- bool AcceptConnection(mojo::Connection* connection) override {
+ bool AcceptConnection(shell::Connection* connection) override {
connection->AddInterface<ConnectTestService>(this);
return true;
}
- // mojo::InterfaceFactory<ConnectTestService>:
- void Create(mojo::Connection* connection,
+ // shell::InterfaceFactory<ConnectTestService>:
+ void Create(shell::Connection* connection,
ConnectTestServiceRequest request) override {
bindings_.AddBinding(this, std::move(request));
}
@@ -50,7 +51,7 @@ class Target : public mojo::ShellClient,
callback.Run(identity_.instance());
}
- mojo::Identity identity_;
+ shell::Identity identity_;
mojo::BindingSet<ConnectTestService> bindings_;
DISALLOW_COPY_AND_ASSIGN(Target);
@@ -62,8 +63,8 @@ int main(int argc, char** argv) {
base::AtExitManager at_exit;
base::CommandLine::Init(argc, argv);
- mojo::shell::InitializeLogging();
+ shell::InitializeLogging();
Target target;
- return mojo::shell::TestNativeMain(&target);
+ return shell::TestNativeMain(&target);
}
« no previous file with comments | « services/shell/tests/connect/connect_test_driver.cc ('k') | services/shell/tests/connect/connect_test_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698