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

Unified Diff: mojo/service_manager/service_manager_unittest.cc

Issue 280003003: Add SetClient method implementation to 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
« no previous file with comments | « mojo/service_manager/service_manager.cc ('k') | mojo/services/gles2/command_buffer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/service_manager/service_manager_unittest.cc
diff --git a/mojo/service_manager/service_manager_unittest.cc b/mojo/service_manager/service_manager_unittest.cc
index a371f956aced3c3fdddd400232791453bfd4a773..0e6b0695a3f0ca27b0bf5bebbda3657d3892c4f1 100644
--- a/mojo/service_manager/service_manager_unittest.cc
+++ b/mojo/service_manager/service_manager_unittest.cc
@@ -27,8 +27,6 @@ struct TestContext {
class TestServiceImpl :
public ServiceConnection<TestService, TestServiceImpl, TestContext> {
public:
- TestServiceImpl() : client_(NULL) {}
-
virtual ~TestServiceImpl() {
if (context())
--context()->num_impls;
@@ -40,16 +38,10 @@ class TestServiceImpl :
}
// TestService implementation:
- virtual void SetClient(TestClient* client) OVERRIDE {
- client_ = client;
- }
virtual void Test(const mojo::String& test_string) OVERRIDE {
context()->last_test_string = test_string.To<std::string>();
- client_->AckTest();
+ client()->AckTest();
}
-
- private:
- TestClient* client_;
};
class TestClientImpl : public TestClient {
« no previous file with comments | « mojo/service_manager/service_manager.cc ('k') | mojo/services/gles2/command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698