| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/bindings/lib/multiplex_router.h" | 5 #include "mojo/public/cpp/bindings/lib/multiplex_router.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "mojo/public/cpp/bindings/interface_endpoint_client.h" | 15 #include "mojo/public/cpp/bindings/interface_endpoint_client.h" |
| 16 #include "mojo/public/cpp/bindings/message.h" | 16 #include "mojo/public/cpp/bindings/message.h" |
| 17 #include "mojo/public/cpp/bindings/message_filter.h" | |
| 18 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" | 17 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" |
| 19 #include "mojo/public/cpp/bindings/tests/message_queue.h" | 18 #include "mojo/public/cpp/bindings/tests/message_queue.h" |
| 20 #include "mojo/public/cpp/bindings/tests/router_test_util.h" | 19 #include "mojo/public/cpp/bindings/tests/router_test_util.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 21 |
| 23 namespace mojo { | 22 namespace mojo { |
| 24 namespace test { | 23 namespace test { |
| 25 namespace { | 24 namespace { |
| 26 | 25 |
| 27 using mojo::internal::MultiplexRouter; | 26 using mojo::internal::MultiplexRouter; |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 | 334 |
| 336 EXPECT_FALSE(generator.responder_is_valid()); | 335 EXPECT_FALSE(generator.responder_is_valid()); |
| 337 generator.CompleteWithResponse(); // This should end up doing nothing. | 336 generator.CompleteWithResponse(); // This should end up doing nothing. |
| 338 } | 337 } |
| 339 | 338 |
| 340 // TODO(yzshen): add more tests. | 339 // TODO(yzshen): add more tests. |
| 341 | 340 |
| 342 } // namespace | 341 } // namespace |
| 343 } // namespace test | 342 } // namespace test |
| 344 } // namespace mojo | 343 } // namespace mojo |
| OLD | NEW |