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/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "mojo/public/cpp/bindings/lib/interface_endpoint_client.h" | 14 #include "mojo/public/cpp/bindings/lib/interface_endpoint_client.h" |
15 #include "mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.h" | 15 #include "mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.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" | 17 #include "mojo/public/cpp/bindings/message_filter.h" |
18 #include "mojo/public/cpp/bindings/tests/message_queue.h" | 18 #include "mojo/public/cpp/bindings/tests/message_queue.h" |
19 #include "mojo/public/cpp/bindings/tests/router_test_util.h" | 19 #include "mojo/public/cpp/bindings/tests/router_test_util.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
21 | 21 |
22 namespace mojo { | 22 namespace mojo { |
23 namespace test { | 23 namespace test { |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 | 335 |
336 EXPECT_FALSE(generator.responder_is_valid()); | 336 EXPECT_FALSE(generator.responder_is_valid()); |
337 generator.CompleteWithResponse(); // This should end up doing nothing. | 337 generator.CompleteWithResponse(); // This should end up doing nothing. |
338 } | 338 } |
339 | 339 |
340 // TODO(yzshen): add more tests. | 340 // TODO(yzshen): add more tests. |
341 | 341 |
342 } // namespace | 342 } // namespace |
343 } // namespace test | 343 } // namespace test |
344 } // namespace mojo | 344 } // namespace mojo |
OLD | NEW |