| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/cpp/application/connect.h" | 5 #include "mojo/public/cpp/application/connect.h" |
| 6 #include "mojo/public/cpp/bindings/binding.h" |
| 6 #include "services/js/test/js_application_test_base.h" | 7 #include "services/js/test/js_application_test_base.h" |
| 7 #include "services/js/test/pingpong_service.mojom.h" | 8 #include "services/js/test/pingpong_service.mojom.h" |
| 8 | 9 |
| 9 namespace js { | 10 namespace js { |
| 10 namespace { | 11 namespace { |
| 11 | 12 |
| 12 class PingPongClientImpl : public PingPongClient { | 13 class PingPongClientImpl : public PingPongClient { |
| 13 public: | 14 public: |
| 14 PingPongClientImpl() : last_pong_value_(0), binding_(this) {}; | 15 PingPongClientImpl() : last_pong_value_(0), binding_(this) {}; |
| 15 ~PingPongClientImpl() override {}; | 16 ~PingPongClientImpl() override {}; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 EXPECT_EQ(2, client.WaitForPongValue()); | 116 EXPECT_EQ(2, client.WaitForPongValue()); |
| 116 target->Ping(100); | 117 target->Ping(100); |
| 117 EXPECT_EQ(101, client.WaitForPongValue()); | 118 EXPECT_EQ(101, client.WaitForPongValue()); |
| 118 target->Quit(); | 119 target->Quit(); |
| 119 pingpong_service_->Quit(); | 120 pingpong_service_->Quit(); |
| 120 } | 121 } |
| 121 | 122 |
| 122 | 123 |
| 123 } // namespace | 124 } // namespace |
| 124 } // namespace js | 125 } // namespace js |
| OLD | NEW |