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

Unified Diff: services/shell/tests/util.h

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
« no previous file with comments | « services/shell/tests/test.mojom ('k') | services/shell/tests/util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/tests/util.h
diff --git a/services/shell/tests/util.h b/services/shell/tests/util.h
index 50603dc0831f2abdc0a2e9ab61b44e4aa8e27a2b..cad88317d177d9d07fbdde6a7f39123148dc94e8 100644
--- a/services/shell/tests/util.h
+++ b/services/shell/tests/util.h
@@ -5,32 +5,30 @@
#ifndef SERVICES_SHELL_TESTS_UTIL_H_
#define SERVICES_SHELL_TESTS_UTIL_H_
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
-
namespace base {
class Process;
}
-namespace mojo {
+namespace shell {
class Connection;
class Connector;
class Identity;
-namespace shell {
+
namespace test {
// Starts the process @ |target_exe_name| and connects to it as |target| using
// |connector|, returning the connection & the process.
// This blocks until the connection is established/rejected by the shell.
-scoped_ptr<Connection> LaunchAndConnectToProcess(
+std::unique_ptr<Connection> LaunchAndConnectToProcess(
const std::string& target_exe_name,
const Identity target,
- mojo::Connector* connector,
+ shell::Connector* connector,
base::Process* process);
} // namespace test
} // namespace shell
-} // namespace mojo
#endif // SERVICES_SHELL_TESTS_UTIL_H_
« no previous file with comments | « services/shell/tests/test.mojom ('k') | services/shell/tests/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698