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

Unified Diff: mojo/public/cpp/bindings/tests/interface_ptr_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
Index: mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc b/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
index 3f9a80d7fdb5bad2aa663b989a34a033fd3c64a3..4410e6f4ace001bb623cc3186b54329e931e242a 100644
--- a/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
@@ -39,26 +39,21 @@ class MathCalculatorImpl : public InterfaceImpl<math::Calculator> {
delete this;
}
- virtual void SetClient(math::CalculatorUI* ui) MOJO_OVERRIDE {
- ui_ = ui;
- }
-
virtual void Clear() MOJO_OVERRIDE {
- ui_->Output(total_);
+ client()->Output(total_);
}
virtual void Add(double value) MOJO_OVERRIDE {
total_ += value;
- ui_->Output(total_);
+ client()->Output(total_);
}
virtual void Multiply(double value) MOJO_OVERRIDE {
total_ *= value;
- ui_->Output(total_);
+ client()->Output(total_);
}
private:
- math::CalculatorUI* ui_;
double total_;
};
« no previous file with comments | « mojo/public/cpp/bindings/tests/handle_passing_unittest.cc ('k') | mojo/public/cpp/bindings/tests/request_response_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698