| 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/error_handler.h" | 5 #include "mojo/public/bindings/error_handler.h" |
| 6 #include "mojo/public/bindings/remote_ptr.h" | 6 #include "mojo/public/bindings/remote_ptr.h" |
| 7 #include "mojo/public/bindings/tests/math_calculator.mojom.h" |
| 8 #include "mojo/public/bindings/tests/sample_service.mojom.h" |
| 7 #include "mojo/public/environment/environment.h" | 9 #include "mojo/public/environment/environment.h" |
| 8 #include "mojo/public/utility/run_loop.h" | 10 #include "mojo/public/utility/run_loop.h" |
| 9 #include "mojom/math_calculator.h" | |
| 10 #include "mojom/sample_service.h" | |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 namespace test { | 14 namespace test { |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 class ErrorObserver : public ErrorHandler { | 17 class ErrorObserver : public ErrorHandler { |
| 18 public: | 18 public: |
| 19 ErrorObserver() : encountered_error_(false) { | 19 ErrorObserver() : encountered_error_(false) { |
| 20 } | 20 } |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 TEST_F(RemotePtrTest, NoPeerAttribute) { | 223 TEST_F(RemotePtrTest, NoPeerAttribute) { |
| 224 // This is a test to ensure the following compiles. The sample::Port interface | 224 // This is a test to ensure the following compiles. The sample::Port interface |
| 225 // does not have an explicit Peer attribute. | 225 // does not have an explicit Peer attribute. |
| 226 InterfacePipe<sample::Port, NoInterface> pipe; | 226 InterfacePipe<sample::Port, NoInterface> pipe; |
| 227 RemotePtr<sample::Port> port(pipe.handle_to_self.Pass()); | 227 RemotePtr<sample::Port> port(pipe.handle_to_self.Pass()); |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace test | 230 } // namespace test |
| 231 } // namespace mojo | 231 } // namespace mojo |
| OLD | NEW |