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

Side by Side Diff: mojo/public/tests/bindings_remote_ptr_unittest.cc

Issue 68683010: Mojo: Generate bindings from math_calculator.mojom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/public/tests/mojom/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/public/tests/mojom/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698