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

Unified Diff: mojo/shell/service_manager_unittest.cc

Issue 109103003: Mojo: abstract interface implementation from generated Stub classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + fix build Created 6 years, 11 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 | « mojo/shell/service_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/service_manager_unittest.cc
diff --git a/mojo/shell/service_manager_unittest.cc b/mojo/shell/service_manager_unittest.cc
index d3545d59f08eb3e09046ecf73592cec5a5df8049..95736947a5e6a3e7ee355e69c130528a8a32daaa 100644
--- a/mojo/shell/service_manager_unittest.cc
+++ b/mojo/shell/service_manager_unittest.cc
@@ -14,11 +14,10 @@ namespace mojo {
namespace shell {
namespace {
-class TestApp : public ShellClientStub {
+class TestApp : public ShellClient {
public:
TestApp(ScopedMessagePipeHandle shell_handle)
- : shell_(shell_handle.Pass()) {
- shell_.SetPeer(this);
+ : shell_(shell_handle.Pass(), this) {
}
virtual ~TestApp() {
}
@@ -31,12 +30,11 @@ class TestApp : public ShellClientStub {
}
private:
- class TestServiceImpl : public TestServiceStub {
+ class TestServiceImpl : public TestService {
public:
TestServiceImpl(TestApp* service, ScopedMessagePipeHandle client_handle)
: service_(service),
- client_(client_handle.Pass()) {
- client_.SetPeer(this);
+ client_(client_handle.Pass(), this) {
}
virtual ~TestServiceImpl() {
}
@@ -52,12 +50,11 @@ class TestApp : public ShellClientStub {
scoped_ptr<TestServiceImpl> service_;
};
-class TestClientImpl : public TestClientStub {
+class TestClientImpl : public TestClient {
public:
explicit TestClientImpl(ScopedMessagePipeHandle service_handle)
- : service_(service_handle.Pass()),
+ : service_(service_handle.Pass(), this),
quit_after_ack_(false) {
- service_.SetPeer(this);
}
virtual ~TestClientImpl() {
}
« no previous file with comments | « mojo/shell/service_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698