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

Unified Diff: chrome/test/base/mash_browser_tests_main.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: chrome/test/base/mash_browser_tests_main.cc
diff --git a/chrome/test/base/mash_browser_tests_main.cc b/chrome/test/base/mash_browser_tests_main.cc
index e3e7a8eb46611e0c8da8c0e2980d4bdf6af2c3e8..0b522699e102cc56bc232155d79c22b130852070 100644
--- a/chrome/test/base/mash_browser_tests_main.cc
+++ b/chrome/test/base/mash_browser_tests_main.cc
@@ -24,7 +24,7 @@
namespace {
-void ConnectToDefaultApps(mojo::Connector* connector) {
+void ConnectToDefaultApps(shell::Connector* connector) {
connector->Connect("mojo:mash_session");
}
@@ -80,8 +80,8 @@ class MashTestLauncherDelegate : public ChromeTestLauncherDelegate {
base::TestLauncher::LaunchOptions* test_launch_options) override {
if (!mojo_test_connector_) {
mojo_test_connector_.reset(new MojoTestConnector);
- shell_client_.reset(new mojo::ShellClient);
- shell_connection_.reset(new mojo::ShellConnection(
+ shell_client_.reset(new shell::ShellClient);
+ shell_connection_.reset(new shell::ShellConnection(
shell_client_.get(), mojo_test_connector_->Init()));
ConnectToDefaultApps(shell_connection_->connector());
}
@@ -98,8 +98,8 @@ class MashTestLauncherDelegate : public ChromeTestLauncherDelegate {
std::unique_ptr<MashTestSuite> test_suite_;
std::unique_ptr<MojoTestConnector> mojo_test_connector_;
- std::unique_ptr<mojo::ShellClient> shell_client_;
- std::unique_ptr<mojo::ShellConnection> shell_connection_;
+ std::unique_ptr<shell::ShellClient> shell_client_;
+ std::unique_ptr<shell::ShellConnection> shell_connection_;
DISALLOW_COPY_AND_ASSIGN(MashTestLauncherDelegate);
};
@@ -124,12 +124,12 @@ bool RunMashBrowserTests(int argc, char** argv, int* exit_code) {
if (command_line.HasSwitch(switches::kChildProcess) &&
!command_line.HasSwitch(MojoTestConnector::kTestSwitch)) {
base::AtExitManager at_exit;
- mojo::shell::InitializeLogging();
- mojo::shell::WaitForDebuggerIfNecessary();
+ shell::InitializeLogging();
+ shell::WaitForDebuggerIfNecessary();
#if !defined(OFFICIAL_BUILD) && defined(OS_WIN)
base::RouteStdioToConsole(false);
#endif
- *exit_code = mojo::shell::ChildProcessMain();
+ *exit_code = shell::ChildProcessMain();
return true;
}
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc ('k') | chrome/test/base/mojo_test_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698