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

Side by Side Diff: mojo/shell/shell_test_helper.cc

Issue 289063015: Mojo: Remove SetClient from generated interfaces (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/shell/app_child_process_host.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/shell/shell_test_helper.h" 5 #include "mojo/shell/shell_test_helper.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "mojo/shell/context.h" 10 #include "mojo/shell/context.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 base::Bind(&StartShellOnShellThread, state_), 73 base::Bind(&StartShellOnShellThread, state_),
74 base::Bind(&ShellTestHelper::OnShellStarted, base::Unretained(this))); 74 base::Bind(&ShellTestHelper::OnShellStarted, base::Unretained(this)));
75 run_loop_.reset(new base::RunLoop); 75 run_loop_.reset(new base::RunLoop);
76 run_loop_->Run(); 76 run_loop_->Run();
77 } 77 }
78 78
79 void ShellTestHelper::OnShellStarted() { 79 void ShellTestHelper::OnShellStarted() {
80 DCHECK(state_); 80 DCHECK(state_);
81 shell_client_.reset(new TestShellClient); 81 shell_client_.reset(new TestShellClient);
82 shell_.Bind(state_->shell_handle.Pass()); 82 shell_.Bind(state_->shell_handle.Pass());
83 shell_->SetClient(shell_client_.get()); 83 shell_.set_client(shell_client_.get());
84 run_loop_->Quit(); 84 run_loop_->Quit();
85 } 85 }
86 86
87 } // namespace shell 87 } // namespace shell
88 } // namespace mojo 88 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/app_child_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698