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/bindings/lib/router.h" | 5 #include "mojo/public/cpp/bindings/lib/router.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "mojo/public/cpp/bindings/tests/message_queue.h" | 12 #include "mojo/public/cpp/bindings/tests/message_queue.h" |
13 #include "mojo/public/cpp/bindings/tests/router_test_util.h" | 13 #include "mojo/public/cpp/bindings/tests/router_test_util.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 | 15 |
16 namespace mojo { | 16 namespace mojo { |
17 namespace test { | 17 namespace test { |
18 namespace { | 18 namespace { |
19 | 19 |
20 class RouterTest : public testing::Test { | 20 class RouterTest : public testing::Test { |
21 public: | 21 public: |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 EXPECT_TRUE(generator.has_responder()); | 305 EXPECT_TRUE(generator.has_responder()); |
306 } | 306 } |
307 | 307 |
308 EXPECT_FALSE(generator.responder_is_valid()); | 308 EXPECT_FALSE(generator.responder_is_valid()); |
309 generator.CompleteWithResponse(); // This should end up doing nothing. | 309 generator.CompleteWithResponse(); // This should end up doing nothing. |
310 } | 310 } |
311 | 311 |
312 } // namespace | 312 } // namespace |
313 } // namespace test | 313 } // namespace test |
314 } // namespace mojo | 314 } // namespace mojo |
OLD | NEW |