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: services/shell/public/cpp/lib/shell_test.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
« no previous file with comments | « services/shell/public/cpp/lib/shell_connection.cc ('k') | services/shell/public/cpp/message_loop_ref.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/lib/shell_test.cc
diff --git a/services/shell/public/cpp/lib/shell_test.cc b/services/shell/public/cpp/lib/shell_test.cc
index e789907af997a7ba1a25afda6209c97ffd36db81..31f290fb2daaaa51985ecc153b6311906a49c125 100644
--- a/services/shell/public/cpp/lib/shell_test.cc
+++ b/services/shell/public/cpp/lib/shell_test.cc
@@ -4,12 +4,13 @@
#include "services/shell/public/cpp/shell_test.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "services/shell/background/background_shell.h"
#include "services/shell/public/cpp/shell_client.h"
-namespace mojo {
+namespace shell {
namespace test {
ShellTestClient::ShellTestClient(ShellTest* test) : test_(test) {}
@@ -29,12 +30,12 @@ void ShellTest::InitTestName(const std::string& test_name) {
test_name_ = test_name;
}
-scoped_ptr<ShellClient> ShellTest::CreateShellClient() {
- return make_scoped_ptr(new ShellTestClient(this));
+std::unique_ptr<ShellClient> ShellTest::CreateShellClient() {
+ return base::WrapUnique(new ShellTestClient(this));
}
-scoped_ptr<base::MessageLoop> ShellTest::CreateMessageLoop() {
- return make_scoped_ptr(new base::MessageLoop);
+std::unique_ptr<base::MessageLoop> ShellTest::CreateMessageLoop() {
+ return base::WrapUnique(new base::MessageLoop);
}
void ShellTest::InitializeCalled(Connector* connector,
@@ -77,4 +78,4 @@ void ShellTest::TearDown() {
}
} // namespace test
-} // namespace mojo
+} // namespace shell
« no previous file with comments | « services/shell/public/cpp/lib/shell_connection.cc ('k') | services/shell/public/cpp/message_loop_ref.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698