| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/public/bindings/lib/remote_ptr.h" | 5 #include "mojo/public/bindings/lib/remote_ptr.h" |
| 6 #include "mojo/public/tests/mojom/math_calculator.h" | |
| 7 #include "mojo/public/tests/simple_bindings_support.h" | 6 #include "mojo/public/tests/simple_bindings_support.h" |
| 7 #include "mojom/math_calculator.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace mojo { | 10 namespace mojo { |
| 11 namespace test { | 11 namespace test { |
| 12 | 12 |
| 13 class MathCalculatorImpl : public math::CalculatorStub { | 13 class MathCalculatorImpl : public math::CalculatorStub { |
| 14 public: | 14 public: |
| 15 explicit MathCalculatorImpl(Handle pipe) | 15 explicit MathCalculatorImpl(Handle pipe) |
| 16 : ui_(pipe), | 16 : ui_(pipe), |
| 17 total_(0.0) { | 17 total_(0.0) { |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 calculator_ui.Add(2.0); | 108 calculator_ui.Add(2.0); |
| 109 calculator_ui.Multiply(5.0); | 109 calculator_ui.Multiply(5.0); |
| 110 | 110 |
| 111 PumpMessages(); | 111 PumpMessages(); |
| 112 | 112 |
| 113 EXPECT_EQ(10.0, calculator_ui.GetOutput()); | 113 EXPECT_EQ(10.0, calculator_ui.GetOutput()); |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace test | 116 } // namespace test |
| 117 } // namespace mojo | 117 } // namespace mojo |
| OLD | NEW |