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

Unified Diff: mojo/shell/shell_test_helper.cc

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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: mojo/shell/shell_test_helper.cc
diff --git a/mojo/shell/shell_test_helper.cc b/mojo/shell/shell_test_helper.cc
index e8f4bea544cd5bd490efde56b22420d45c021e65..d1c77f97095419ab351db178e5538d020f087f4a 100644
--- a/mojo/shell/shell_test_helper.cc
+++ b/mojo/shell/shell_test_helper.cc
@@ -19,7 +19,7 @@ namespace shell {
struct ShellTestHelper::State {
scoped_ptr<Context> context;
scoped_ptr<ServiceManager::TestAPI> test_api;
- ScopedShellHandle shell_handle;
+ ScopedMessagePipeHandle shell_handle;
};
namespace {
@@ -79,7 +79,8 @@ void ShellTestHelper::Init() {
void ShellTestHelper::OnShellStarted() {
DCHECK(state_);
shell_client_.reset(new TestShellClient);
- shell_.reset(state_->shell_handle.Pass(), shell_client_.get());
+ shell_.Bind(state_->shell_handle.Pass());
+ shell_->SetClient(shell_client_.get());
run_loop_->Quit();
}

Powered by Google App Engine
This is Rietveld 408576698