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

Unified Diff: mojo/public/cpp/bindings/tests/sample_service_unittest.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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/tests/sample_service_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/sample_service_unittest.cc b/mojo/public/cpp/bindings/tests/sample_service_unittest.cc
index 1cb1af42f7bb579b570d7239bdbc437713807f26..bd1a552293932e96eead783e1dd9dd0c5c54daee 100644
--- a/mojo/public/cpp/bindings/tests/sample_service_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/sample_service_unittest.cc
@@ -266,13 +266,6 @@ void DumpHex(const uint8_t* bytes, uint32_t num_bytes) {
class ServiceImpl : public Service {
public:
- ServiceImpl() : client_(NULL) {
- }
-
- virtual void SetClient(ServiceClient* client) MOJO_OVERRIDE {
- client_ = client;
- }
-
virtual void Frobinate(const Foo& foo, BazOptions baz, PortPtr port)
MOJO_OVERRIDE {
// Users code goes here to handle the incoming Frobinate message.
@@ -290,9 +283,6 @@ class ServiceImpl : public Service {
Print(depth, "port", port.get());
}
}
-
- private:
- ServiceClient* client_;
};
class ServiceProxyImpl : public ServiceProxy {
@@ -300,10 +290,6 @@ class ServiceProxyImpl : public ServiceProxy {
explicit ServiceProxyImpl(mojo::MessageReceiver* receiver)
: ServiceProxy(receiver) {
}
-
- virtual void SetClient(ServiceClient* client) MOJO_OVERRIDE {
- assert(false);
- }
};
class SimpleMessageReceiver : public mojo::MessageReceiver {
« no previous file with comments | « mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc ('k') | mojo/public/cpp/shell/lib/service_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698